/// <summary> /// Creator: Cash Carlson /// Created: 2020/02/21 /// Approver: Zach Behrensmeyer /// /// Additional Constructor to use an alternative data accessor instead of /// the default. Mostly used for testing /// </summary> /// <remarks> /// Updater Name /// Updated: yyyy/mm/dd /// Update: () /// </remarks> /// <param name="inventoryAccessor"></param> public InventoryItemsManager(IInventoryItemsAccessor inventoryAccessor) { _inventoryAccessor = inventoryAccessor; }
public void TestTearDown() { _inventoryAccessor = null; }
/// <summary> /// Creator: Cash Carlson /// Created: 02/21/2020 /// Approver: Zach Behrensmeyer /// /// Default Constructor for Inventory Items Manager Class that uses the /// data access class for InventoryItems /// </summary> /// <remarks> /// Updater Name /// Updated: yyyy/mm/dd /// Update: () /// </remarks> public InventoryItemsManager() { _inventoryAccessor = new InventoryItemsAccessor(); }
public void InventoryItemsTestSetup() { _inventoryAccessor = new FakeInventoryItemsAccessor(); }