Class Test_TemplateService
Inheritance
Test_TemplateService
Assembly: OEMS.UnitTests.dll
Syntax
[TestClass]
public sealed class Test_TemplateService
Methods
Cleanup()
Declaration
[TestCleanup]
public void Cleanup()
CreateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task CreateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
CreateEmailTemplate_WithValidData_ReturnsGuid()
Declaration
[TestMethod]
public Task CreateEmailTemplate_WithValidData_ReturnsGuid()
Returns
CreateEventTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task CreateEventTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
CreateProcessStepTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task CreateProcessStepTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
CreateProcessStepTemplate_WithValidData_ReturnsGuid()
Declaration
[TestMethod]
public Task CreateProcessStepTemplate_WithValidData_ReturnsGuid()
Returns
CreateProcessTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task CreateProcessTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
CreateProcessTemplate_WithValidData_ReturnsGuid()
Declaration
[TestMethod]
public Task CreateProcessTemplate_WithValidData_ReturnsGuid()
Returns
DeleteEmailTemplate_ExistingTemplate_DeletesSuccessfully()
Declaration
[TestMethod]
public Task DeleteEmailTemplate_ExistingTemplate_DeletesSuccessfully()
Returns
DeleteEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task DeleteEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
DeleteProcessStepTemplate_ExistingTemplate_DeletesSuccessfully()
Declaration
[TestMethod]
public Task DeleteProcessStepTemplate_ExistingTemplate_DeletesSuccessfully()
Returns
DeleteProcessStepTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task DeleteProcessStepTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
DeleteProcessTemplate_ExistingTemplate_DeletesSuccessfully()
Declaration
[TestMethod]
public Task DeleteProcessTemplate_ExistingTemplate_DeletesSuccessfully()
Returns
DeleteProcessTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task DeleteProcessTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
Declaration
[TestMethod]
public Task EmailTemplate_UserWithOnlyDesignerRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task EmailTemplate_UserWithOnlyOrgAdminRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task EmailTemplate_UserWithOnlyOrganizerRole_CanPerformOperations()
Returns
GetEmailTemplates_ReturnsTemplatesList()
Declaration
[TestMethod]
public Task GetEmailTemplates_ReturnsTemplatesList()
Returns
GetEmailTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetEmailTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
GetEventTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetEventTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
GetProcessStepTemplateById_ExistingTemplate_ReturnsTemplate()
Declaration
[TestMethod]
public Task GetProcessStepTemplateById_ExistingTemplate_ReturnsTemplate()
Returns
GetProcessStepTemplateById_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetProcessStepTemplateById_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
GetProcessStepTemplatesByProcessTemplateId_ReturnsTemplatesList()
Declaration
[TestMethod]
public Task GetProcessStepTemplatesByProcessTemplateId_ReturnsTemplatesList()
Returns
GetProcessStepTemplatesByProcessTemplateId_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetProcessStepTemplatesByProcessTemplateId_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
GetProcessTemplateById_ExistingTemplate_ReturnsTemplate()
Declaration
[TestMethod]
public Task GetProcessTemplateById_ExistingTemplate_ReturnsTemplate()
Returns
GetProcessTemplateById_NonExistingTemplate_ThrowsKeyNotFoundException()
Declaration
[TestMethod]
public Task GetProcessTemplateById_NonExistingTemplate_ThrowsKeyNotFoundException()
Returns
GetProcessTemplateById_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetProcessTemplateById_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
GetProcessTemplates_ReturnsTemplatesList()
Declaration
[TestMethod]
public Task GetProcessTemplates_ReturnsTemplatesList()
Returns
GetProcessTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task GetProcessTemplates_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
Initialize()
Declaration
[TestInitialize]
public void Initialize()
Declaration
[TestMethod]
public Task ProcessStepTemplate_UserWithOnlyDesignerRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task ProcessStepTemplate_UserWithOnlyOrgAdminRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task ProcessStepTemplate_UserWithOnlyOrganizerRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task ProcessTemplate_UserWithOnlyDesignerRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task ProcessTemplate_UserWithOnlyOrgAdminRole_CanPerformOperations()
Returns
Declaration
[TestMethod]
public Task ProcessTemplate_UserWithOnlyOrganizerRole_CanPerformOperations()
Returns
UpdateEmailTemplate_ExistingTemplate_UpdatesSuccessfully()
Declaration
[TestMethod]
public Task UpdateEmailTemplate_ExistingTemplate_UpdatesSuccessfully()
Returns
UpdateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UpdateEmailTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
UpdateProcessStepTemplateSequence_UpdatesSequenceSuccessfully()
Declaration
[TestMethod]
public Task UpdateProcessStepTemplateSequence_UpdatesSequenceSuccessfully()
Returns
UpdateProcessStepTemplateSequence_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UpdateProcessStepTemplateSequence_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
UpdateProcessStepTemplate_ExistingTemplate_UpdatesSuccessfully()
Declaration
[TestMethod]
public Task UpdateProcessStepTemplate_ExistingTemplate_UpdatesSuccessfully()
Returns
UpdateProcessStepTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UpdateProcessStepTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
UpdateProcessTemplate_ExistingTemplate_UpdatesSuccessfully()
Declaration
[TestMethod]
public Task UpdateProcessTemplate_ExistingTemplate_UpdatesSuccessfully()
Returns
UpdateProcessTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UpdateProcessTemplate_UserWithoutPermission_ThrowsUnauthorizedException()
Returns
UserCanManageTemplates_AsDesigner_ReturnsTrue()
Declaration
[TestMethod]
public Task UserCanManageTemplates_AsDesigner_ReturnsTrue()
Returns
UserCanManageTemplates_AsOrgAdmin_ReturnsTrue()
Declaration
[TestMethod]
public Task UserCanManageTemplates_AsOrgAdmin_ReturnsTrue()
Returns
UserCanManageTemplates_AsOrganizer_ReturnsTrue()
Declaration
[TestMethod]
public Task UserCanManageTemplates_AsOrganizer_ReturnsTrue()
Returns
UserCanManageTemplates_UserNotInOrganization_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UserCanManageTemplates_UserNotInOrganization_ThrowsUnauthorizedException()
Returns
UserCanManageTemplates_WithNoPermissions_ThrowsUnauthorizedException()
Declaration
[TestMethod]
public Task UserCanManageTemplates_WithNoPermissions_ThrowsUnauthorizedException()
Returns