Class Test_EmailTemplateService
Inheritance
Test_EmailTemplateService
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
CreateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
[ExpectedException(typeof(UnauthorizedAccessException))]
public Task CreateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
CreateEmailTemplate_WithEmptyBody_ThrowsArgumentException()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public Task CreateEmailTemplate_WithEmptyBody_ThrowsArgumentException()
Returns
CreateEmailTemplate_WithEmptyName_ThrowsArgumentException()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public Task CreateEmailTemplate_WithEmptyName_ThrowsArgumentException()
Returns
CreateEmailTemplate_WithEmptyOrganizationId_ThrowsArgumentException()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public Task CreateEmailTemplate_WithEmptyOrganizationId_ThrowsArgumentException()
Returns
CreateEmailTemplate_WithEmptySubject_ThrowsArgumentException()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public Task CreateEmailTemplate_WithEmptySubject_ThrowsArgumentException()
Returns
Declaration
[TestMethod]
public Task CreateEmailTemplate_WithManuallySetVariables_OverridesExtractedVariables()
Returns
CreateEmailTemplate_WithValidData_ReturnsGuid()
Declaration
[TestMethod]
public Task CreateEmailTemplate_WithValidData_ReturnsGuid()
Returns
DeleteEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task DeleteEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
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
GetEmailTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetEmailTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
Initialize()
Declaration
[TestInitialize]
public void Initialize()
UpdateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UpdateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
UpdateEmailTemplate_WithEmptyId_ThrowsArgumentException()
Declaration
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public Task UpdateEmailTemplate_WithEmptyId_ThrowsArgumentException()
Returns
UpdateEmailTemplate_WithValidData_CallsUpdateAsync()
Declaration
[TestMethod]
public Task UpdateEmailTemplate_WithValidData_CallsUpdateAsync()
Returns
UpdateEmailTemplate_WithValidData_UpdatesSuccessfully()
Declaration
[TestMethod]
public Task UpdateEmailTemplate_WithValidData_UpdatesSuccessfully()
Returns