/// <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));
 }
示例#2
0
 public RepositoriesController(IRepositoriesByAccountNameQuery repositoriesByAccountNameQuery,
                               IHttpActionResultFactory httpActionResultFactory,
                               IMapper mapper)
 {
     this.repositoriesByAccountNameQuery = repositoriesByAccountNameQuery;
     this.httpActionResultFactory        = httpActionResultFactory;
     this.mapper = mapper;
 }
示例#3
0
 public AccountsController(IAccountByUserNameQuery accountByUserNameQuery,
                           IAccountByTeamNameQuery accountByTeamNameQuery,
                           IHttpActionResultFactory httpActionResultFactory,
                           IMapper mapper)
 {
     this.accountByUserNameQuery  = accountByUserNameQuery;
     this.accountByTeamNameQuery  = accountByTeamNameQuery;
     this.httpActionResultFactory = httpActionResultFactory;
     this.mapper = mapper;
 }