public void GetInventoriesShouldGetAllInventories() { using (var context = new StoreDBContext(options)) { IStoreRepository _repo = new StoreRepoDB(context); var inventories = _repo.GetInventory(); Assert.Equal(42, inventories.Count); } }
public void GetInventoryGivenLocationIDShouldReturnInventoriesAtLocation() { using (var context = new StoreDBContext(options)) { IStoreRepository _repo = new StoreRepoDB(context); List <Inventory> inventories = new List <Inventory>(); inventories.Add(_repo.GetInventory(2)); Assert.Equal(1, inventories.Count); } }