public void DoesDeleteUserClaimsWhenUserDeleted() { // Arrange var user = Helpers.CreateUser(nameof(DoesDeleteUserClaimsWhenUserDeleted)); var coreClaimController = new Core.Authorization.ClaimController( ControllerLocator.ClaimController, ControllerLocator.RoleController, ControllerLocator.RoleClaimController); coreClaimController.GetAuthorizationClaims(); // Act _userController.Delete(user.Id); // Assert var userClaims = _actorClaimController.GetActorClaims(user.Id); Assert.Empty(userClaims); }
public ActorClaimController(Core.Controllers.ActorClaimController actorClaimCoreController, Core.Authorization.ClaimController claimCoreController, IAuthorizationService authorizationService) { _actorClaimCoreController = actorClaimCoreController; _claimCoreController = claimCoreController; _authorizationService = authorizationService; }