public InventoryItemsController(IInventoryRepository repository, IMessageQueueService messagingService,
			IInventoryTakeMessageCache messageCache, INotificationService notificationService, ILog logger)
        {
            _repository = repository;
            _messageCache = messageCache;
            _notificationService = notificationService;
            _logger = logger;
            _messagingService = messagingService;
        }
 public void FlushLocalCache(IInventoryTakeMessageCache cache)
 {
     BatchInventoryItems(cache.Items);
 }
 public void CacheInventoryItem(IInventoryTakeMessageCache cache, InventoryItem item)
 {
     cache.Items.Add(item);
 }