/// <summary> /// Initializes a new instance of the <see cref="ValuesController"/> class. /// </summary> /// <param name="valuesRepository">The values repository.</param> /// <param name="actionResultFactory">The action result factory.</param> public ValuesController( IValuesRepository valuesRepository, IHttpActionResultFactory actionResultFactory) { this.valuesRepository = valuesRepository ?? throw new ArgumentNullException(nameof(valuesRepository)); this.actionResultFactory = actionResultFactory ?? throw new ArgumentNullException(nameof(actionResultFactory)); }
public RepositoriesController(IRepositoriesByAccountNameQuery repositoriesByAccountNameQuery, IHttpActionResultFactory httpActionResultFactory, IMapper mapper) { this.repositoriesByAccountNameQuery = repositoriesByAccountNameQuery; this.httpActionResultFactory = httpActionResultFactory; this.mapper = mapper; }
public AccountsController(IAccountByUserNameQuery accountByUserNameQuery, IAccountByTeamNameQuery accountByTeamNameQuery, IHttpActionResultFactory httpActionResultFactory, IMapper mapper) { this.accountByUserNameQuery = accountByUserNameQuery; this.accountByTeamNameQuery = accountByTeamNameQuery; this.httpActionResultFactory = httpActionResultFactory; this.mapper = mapper; }