public void CreateInventoryItem(CreateInventoryItemCommand command)
 {
     _logger.Debug("[inventory] Creating item " + command.Sku);
     _repository.Save(
         new InventoryItem(command.ItemId, command.Sku, command.Description),
         command.Id
     );
     //throw new NotImplementedException();
     _logger.Debug("[inventory] Item " + command.Sku + " saved");
 }
        public void ExecuteCreateNewInventoryItem(Object state)
        {

            var id = Guid.NewGuid();
            var command = new CreateInventoryItemCommand(id)
            {
                ItemId = id,
                Sku = NewInventoryItemSku,
                Description = NewInventoryItemDescription,
            };

            Infrastructure.Instance.SendCommand(command);
        }