コード例 #1
0
 public void GetInventoriesShouldGetAllInventories()
 {
     using (var context = new StoreDBContext(options))
     {
         IStoreRepository _repo = new StoreRepoDB(context);
         var inventories        = _repo.GetInventory();
         Assert.Equal(42, inventories.Count);
     }
 }
コード例 #2
0
 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);
     }
 }