Exemplo n.º 1
0
 private void InitializeFakeObjects()
 {
     _policyRepositoryStub           = new Mock <IPolicyRepository>();
     _repositoryExceptionHelper      = new Mock <IRepositoryExceptionHelper>();
     _getAuthorizationPoliciesAction = new GetAuthorizationPoliciesAction(
         _policyRepositoryStub.Object,
         _repositoryExceptionHelper.Object);
 }
Exemplo n.º 2
0
 public PolicyActions(
     IAddAuthorizationPolicyAction addAuthorizationPolicyAction,
     IGetAuthorizationPolicyAction getAuthorizationPolicyAction,
     IDeleteAuthorizationPolicyAction deleteAuthorizationPolicyAction,
     IGetAuthorizationPoliciesAction getAuthorizationPoliciesAction,
     IUpdatePolicyAction updatePolicyAction,
     IAddResourceSetToPolicyAction addResourceSetAction,
     IDeleteResourcePolicyAction deleteResourcePolicyAction)
 {
     _addAuthorizationPolicyAction    = addAuthorizationPolicyAction;
     _getAuthorizationPolicyAction    = getAuthorizationPolicyAction;
     _deleteAuthorizationPolicyAction = deleteAuthorizationPolicyAction;
     _getAuthorizationPoliciesAction  = getAuthorizationPoliciesAction;
     _updatePolicyAction         = updatePolicyAction;
     _addResourceSetAction       = addResourceSetAction;
     _deleteResourcePolicyAction = deleteResourcePolicyAction;
 }