public TrailsController(ITrialRepository trailRepo, IMapper mapper)
 {
     _trailRepo = trailRepo; _mapper = mapper;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrialController" /> class.
 /// </summary>
 /// <param name="repository">the repository that will interact with the data</param>
 public TrialController(ITrialRepository repository)
 {
     this._repository = repository;
 }
 public TrialService(ITrialRepository repository, IAgeCategoryRepository ageCategoryRepository, IValidator <Trial> validator)
 {
     _repository            = repository;
     _validator             = validator;
     _ageCategoryRepository = ageCategoryRepository;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddTrialCommandHandler"/> class.
 /// </summary>
 /// <param name="trialRepository">The trial repository.</param>
 public AddTrialCommandHandler(ITrialRepository trialRepository, IEventBus eventBus)
 {
     this._trialRepository = trialRepository;
     this._eventBus        = eventBus;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrialBusiness" /> class.
 /// </summary>
 /// <param name="trial">Implementation of the Trial Repository</param>
 public TrialBusiness(ITrialRepository trial)
 {
     this.trialRepository = trial;
 }