Пример #1
0
 public ProjectLinksController(IProjectRepository projectRepository, IProjectLinkRepository projectLinkRepository, Orchestrator orchestrator, UserService userService)
 {
     this.projectRepository     = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository));
     this.projectLinkRepository = projectLinkRepository ?? throw new ArgumentNullException(nameof(projectLinkRepository));
     this.orchestrator          = orchestrator ?? throw new ArgumentNullException(nameof(orchestrator));
     this.userService           = userService ?? throw new ArgumentNullException(nameof(userService));
 }
 public ProjectLinksController(UserService userService, Orchestrator orchestrator, IProjectRepository projectRepository, IProjectLinkRepository projectLinkRepository)
     : base(userService, orchestrator, projectRepository)
 {
     this.projectLinkRepository = projectLinkRepository ?? throw new ArgumentNullException(nameof(projectLinkRepository));
 }
Пример #3
0
 public OrchestratorProjectLinkCommandHandler(IProjectLinkRepository projectLinkRepository)
 {
     this.projectLinkRepository = projectLinkRepository ?? throw new ArgumentNullException(nameof(projectLinkRepository));
 }
Пример #4
0
 public CosmosDbProjectRepository(ICosmosDbOptions cosmosOptions, IUserRepository userRepository, IProjectLinkRepository projectLinkRepository)
     : base(cosmosOptions)
 {
     this.userRepository        = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this.projectLinkRepository = projectLinkRepository ?? throw new ArgumentNullException(nameof(projectLinkRepository));
 }