public OrganizationUserCommandHandler(IUserRepository userRepository, IOrganizationRepository organizationRepository, IAzureSessionService azureSessionService, TeamCloudEndpointOptions endpointOptions) { this.userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); this.organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository)); this.azureSessionService = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService)); this.endpointOptions = endpointOptions ?? throw new ArgumentNullException(nameof(endpointOptions)); }
public ProjectUserCommandHandler(IOrganizationRepository organizationRepository, IProjectRepository projectRepository, IUserRepository userRepository, IComponentRepository componentRepository, IAzureSessionService azureSessionService, TeamCloudEndpointOptions endpointOptions) { this.organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository)); this.projectRepository = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository)); this.userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); this.componentRepository = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository)); this.azureSessionService = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService)); this.endpointOptions = endpointOptions ?? throw new ArgumentNullException(nameof(endpointOptions)); }