public async Task SecurityServiceManager_CreateRole_DuplicateRole_ErrorThrown()
        {
            TestScenario           testScenario           = TestScenario.CreateRoleDuplicateRoleName;
            SecurityServiceManager securityServiceManager = this.SetupSecurityServiceManager(testScenario);

            CreateRoleRequest request = SecurityServiceManagerTestData.GetCreateRoleRequest;

            Should.Throw <IdentityResultException>(async() => { await securityServiceManager.CreateRole(request, CancellationToken.None); });
        }
        public void SecurityServiceManager_CreateRole_InvalidData_ErrorThrown(String roleName)
        {
            TestScenario           testScenario           = TestScenario.CreateRoleInvalidData;
            SecurityServiceManager securityServiceManager = this.SetupSecurityServiceManager(testScenario);

            CreateRoleRequest request = SecurityServiceManagerTestData.GetCreateRoleRequest;

            request.RoleName = roleName;

            Should.Throw <ArgumentNullException>(async() => { await securityServiceManager.CreateRole(request, CancellationToken.None); });
        }
        public async Task SecurityServiceManager_CreateRole_RoleIsCreated()
        {
            TestScenario           testScenario           = TestScenario.CreateRoleSuccess;
            SecurityServiceManager securityServiceManager = this.SetupSecurityServiceManager(testScenario);

            CreateRoleRequest request = SecurityServiceManagerTestData.GetCreateRoleRequest;

            var response = await securityServiceManager.CreateRole(request, CancellationToken.None);

            response.ShouldNotBeNull();
            response.RoleId.ShouldNotBe(Guid.Empty);
        }