Ejemplo n.º 1
0
 private void InitializeFakeObjects()
 {
     _resourceSetRepositoryStub     = new Mock <IResourceSetRepository>();
     _resourceSetParameterValidator = new Mock <IResourceSetParameterValidator>();
     _updateResourceSetAction       = new UpdateResourceSetAction(
         _resourceSetRepositoryStub.Object,
         _resourceSetParameterValidator.Object);
 }
 public ResourceSetActions(
     IAddResourceSetAction addResourceSetAction,
     IGetResourceSetAction getResourceSetAction,
     IUpdateResourceSetAction updateResourceSetAction,
     IDeleteResourceSetAction deleteResourceSetAction,
     IGetAllResourceSetAction getAllResourceSetAction,
     IGetPoliciesAction getPoliciesAction)
 {
     _addResourceSetAction    = addResourceSetAction;
     _getResourceSetAction    = getResourceSetAction;
     _updateResourceSetAction = updateResourceSetAction;
     _deleteResourceSetAction = deleteResourceSetAction;
     _getAllResourceSetAction = getAllResourceSetAction;
     _getPoliciesAction       = getPoliciesAction;
 }