public InventoryController(IInventoryItemFactory inventoryFactory) { _inventoryFactory = inventoryFactory; }
/// <summary> /// Converts an item that has been parsed as part of our input pipeline into an inventory item /// </summary> /// <param name="itemFactory">The factory that can create inventory items</param> public ParsedItemToInventoryItemConverter(IInventoryItemFactory itemFactory) { _itemFactory = itemFactory ?? throw new ArgumentNullException(nameof(itemFactory)); }