public ResourcesActions(IGetCurrentUserResourcesAction getCurrentUserResourcesAction, IConfirmSharedLinkAction confirmSharedLinkAction, IShareResourceAction shareResourceAction, IUpdateResourcePermissionsAction updateResourcePermissionsAction, IGetResourcesSharedWithMeAction getResourcesSharedWithMeAction) { _getCurrentUserResourcesAction = getCurrentUserResourcesAction; _confirmSharedLinkAction = confirmSharedLinkAction; _shareResourceAction = shareResourceAction; _updateResourcePermissionsAction = updateResourcePermissionsAction; _getResourcesSharedWithMeAction = getResourcesSharedWithMeAction; }
private void InitializeFakeObjects() { _sharedLinkRepositoryStub = new Mock <ISharedLinkRepository>(); _resourceSetRepositoryStub = new Mock <IResourceSetRepository>(); _policyRepositoryStub = new Mock <IPolicyRepository>(); _confirmSharedLinkAction = new ConfirmSharedLinkAction(_sharedLinkRepositoryStub.Object, _resourceSetRepositoryStub.Object, _policyRepositoryStub.Object); }