public InventoryUpdaterTests()
        {
            var setup = new SetUp();

            setup.Initialize();
            var context = setup.HolidayDbContext;

            _inventoryItemRepository     = new InventoryItemsRepository(context);
            _inventoryCategoryRepository = new InventoryCategoryRepository(context);
            _timeService = new TimeService();
            var _logger = new Mock <ILogger <BackgroundInventoryUpdater> >().Object;

            _backgroundInventoryUpdater = new BackgroundInventoryUpdater(_inventoryItemRepository, _inventoryCategoryRepository, _timeService, _logger);
        }
Beispiel #2
0
 public AssetsLookupService(InventoryCategoryRepository inventoryCategoryRepository,
                            ManufacturersRepository manufacturersRepository)
 {
     this.inventoryCategoryRepository = inventoryCategoryRepository;
     this.manufacturersRepository     = manufacturersRepository;
 }