public ConsumptionEventsController(ILogger <ConsumptionEventsController> logger, ISelectListFactoryService selectListService, IConsumptionEventService consumptionEventService) { _logger = logger; _selectListService = selectListService; _eventService = consumptionEventService; }
public ItemsController(IItemService itemService, ILogger <ItemsController> logger, ISelectListFactoryService selectListService) { _logger = logger; _itemService = itemService; _selectListService = selectListService; }
public InventoryControllerTests() { _fakeLogger = Substitute.For <ILogger <ItemsController> >(); _options = new DbContextOptionsBuilder <EgretDbContext>(); _options.UseNpgsql("dummy"); _itemService = Substitute.For <IItemService>(); _selectListService = Substitute.For <ISelectListFactoryService>(); }