public BeverageTypesController(
     CatalogContext catalogContext,
     IOptionsSnapshot <CatalogSettings> settings,
     ICatalogIntegrationEventService catalogIntegrationEventService,
     IBeverageTypeService beverageTypeService)
 {
     this.catalogContext = catalogContext ?? throw new ArgumentNullException(nameof(catalogContext));;
     this.settings       = settings;
     this.catalogIntegrationEventService = catalogIntegrationEventService ?? throw new ArgumentNullException(nameof(catalogIntegrationEventService));
     this.beverageTypeService            = beverageTypeService;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BeverageTypesController" /> class.
 /// </summary>
 /// <param name="beverageTypeService"></param>
 public BeverageTypesController(IBeverageTypeService beverageTypeService)
 {
     this.beverageTypeService = beverageTypeService;
 }