Esempio n. 1
0
 /// <summary>
 /// Constructs an instance of the BottlesController.
 /// </summary>
 /// <param name="bottleService">An instance of class implementing the IBottleService interface.</param>
 public BottlesController(IBottleService bottleService,
                          IValidator <BottleApiModel> bottleValidator,
                          IMapper <BottleDomainModel, BottleApiModel> toApiModelMapper,
                          IMapper <BottleApiModel, BottleDomainModel> toDomainModelMapper)
 {
     this._bottleService       = bottleService;
     this._bottleValidator     = bottleValidator;
     this._toApiModelMapper    = toApiModelMapper;
     this._toDomainModelMapper = toDomainModelMapper;
 }
Esempio n. 2
0
 public BottlesController(IBottleService service)
 {
     _bottleService = service;
 }