Search Results for

    Show / Hide Table of Contents

    Class Test_EmailTemplateService

    Inheritance
    object
    Test_EmailTemplateService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.UnitTests.Application
    Assembly: OEMS.UnitTests.dll
    Syntax
    [TestClass]
    public sealed class Test_EmailTemplateService

    Methods

    Cleanup()

    Declaration
    [TestCleanup]
    public void Cleanup()

    CreateEmailTemplate_ExtractsVariablesFromBody()

    Declaration
    [TestMethod]
    public Task CreateEmailTemplate_ExtractsVariablesFromBody()
    Returns
    Type Description
    Task

    CreateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()

    Declaration
    [TestMethod]
    [ExpectedException(typeof(UnauthorizedAccessException))]
    public Task CreateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
    Returns
    Type Description
    Task

    CreateEmailTemplate_WithEmptyBody_ThrowsArgumentException()

    Declaration
    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public Task CreateEmailTemplate_WithEmptyBody_ThrowsArgumentException()
    Returns
    Type Description
    Task

    CreateEmailTemplate_WithEmptyName_ThrowsArgumentException()

    Declaration
    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public Task CreateEmailTemplate_WithEmptyName_ThrowsArgumentException()
    Returns
    Type Description
    Task

    CreateEmailTemplate_WithEmptyOrganizationId_ThrowsArgumentException()

    Declaration
    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public Task CreateEmailTemplate_WithEmptyOrganizationId_ThrowsArgumentException()
    Returns
    Type Description
    Task

    CreateEmailTemplate_WithEmptySubject_ThrowsArgumentException()

    Declaration
    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public Task CreateEmailTemplate_WithEmptySubject_ThrowsArgumentException()
    Returns
    Type Description
    Task

    CreateEmailTemplate_WithManuallySetVariables_OverridesExtractedVariables()

    Declaration
    [TestMethod]
    public Task CreateEmailTemplate_WithManuallySetVariables_OverridesExtractedVariables()
    Returns
    Type Description
    Task

    CreateEmailTemplate_WithValidData_ReturnsGuid()

    Declaration
    [TestMethod]
    public Task CreateEmailTemplate_WithValidData_ReturnsGuid()
    Returns
    Type Description
    Task

    DeleteEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()

    Declaration
    [TestMethod]
    public Task DeleteEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
    Returns
    Type Description
    Task

    ExtractVariablesFromBody_DirectTest_ReturnsCorrectVariables()

    Declaration
    [TestMethod]
    public void ExtractVariablesFromBody_DirectTest_ReturnsCorrectVariables()

    ExtractVariablesFromBody_EmptyInput_ReturnsEmptyString()

    Declaration
    [TestMethod]
    public void ExtractVariablesFromBody_EmptyInput_ReturnsEmptyString()

    ExtractVariablesFromBody_NoVariables_ReturnsEmptyString()

    Declaration
    [TestMethod]
    public void ExtractVariablesFromBody_NoVariables_ReturnsEmptyString()

    GetEmailTemplates_ReturnsTemplatesList()

    Declaration
    [TestMethod]
    public Task GetEmailTemplates_ReturnsTemplatesList()
    Returns
    Type Description
    Task

    GetEmailTemplates_UserWithoutPermission_ThrowsUnauthorizedException()

    Declaration
    [TestMethod]
    public Task GetEmailTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
    Returns
    Type Description
    Task

    Initialize()

    Declaration
    [TestInitialize]
    public void Initialize()

    UpdateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()

    Declaration
    [TestMethod]
    public Task UpdateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
    Returns
    Type Description
    Task

    UpdateEmailTemplate_WithEmptyId_ThrowsArgumentException()

    Declaration
    [TestMethod]
    [ExpectedException(typeof(ArgumentException))]
    public Task UpdateEmailTemplate_WithEmptyId_ThrowsArgumentException()
    Returns
    Type Description
    Task

    UpdateEmailTemplate_WithValidData_CallsUpdateAsync()

    Declaration
    [TestMethod]
    public Task UpdateEmailTemplate_WithValidData_CallsUpdateAsync()
    Returns
    Type Description
    Task

    UpdateEmailTemplate_WithValidData_UpdatesSuccessfully()

    Declaration
    [TestMethod]
    public Task UpdateEmailTemplate_WithValidData_UpdatesSuccessfully()
    Returns
    Type Description
    Task
    In this article
    Back to top Generated by DocFX