internal UserUseCaseFactory(ISecurityGateway securityGateway, IRepositoryFactory repositoryFactory) { ChangeInformation = new ChangeInformationUseCase(securityGateway, repositoryFactory.UserRepository); ChangePassword = new ChangePasswordUseCase(securityGateway, repositoryFactory.UserRepository); DeleteUser = new DeleteUserUseCase(securityGateway, repositoryFactory.UserRepository); RegisterUser = new RegisterUserUseCase(securityGateway, repositoryFactory.UserRepository); ViewProfile = new ViewProfileUseCase(securityGateway, repositoryFactory.UserRepository); AuthorizeUser = new AuthorizeUserUseCase(securityGateway, repositoryFactory.UserRepository); }
public ProjectUseCaseFactory(ISecurityGateway securityGateway, IRepositoryFactory repositoryFactory) { CreateProject = new CreateProjectUseCase(securityGateway, repositoryFactory.ProjectRepository, repositoryFactory.UserRepository); ViewProject = new ViewProjectUseCase(securityGateway, repositoryFactory.ProjectRepository); ChangeInformation = new ChangeInformationUseCase(securityGateway, repositoryFactory.ProjectRepository); ChangeRights = new ChangeRightsUseCase(securityGateway, repositoryFactory.ProjectRepository, repositoryFactory.UserRepository); DeleteProject = new DeleteProjectUseCase(securityGateway, repositoryFactory.ProjectRepository); ChangeRequirementOrder = new ChangeRequirementOrderUseCase(securityGateway, repositoryFactory.ProjectRepository); ChangeUseCaseOrder = new ChangeUseCaseOrderUseCase(securityGateway, repositoryFactory.ProjectRepository); }