예제 #1
0
 public void GetLocationByName()
 {
     using (var context = new Entity.StoreAppDBContext(options))
     {
         IRepository    _repo  = new RepoDB(context);
         Model.Location result = _repo.GetLocation("WA-Seattle");
         Assert.NotNull(result);
         Assert.Equal(1, result.Id);
     }
 }
예제 #2
0
 public void GetAllInventories()
 {
     using (var context = new Entity.StoreAppDBContext(options))
     {
         IRepository          _repo    = new RepoDB(context);
         Model.Location       location = _repo.GetLocation("WA-Seattle");
         HashSet <Model.Item> result   = _repo.GetAllInventories(location);
         Assert.NotNull(result);
         Assert.Equal(1, result.Count);
     }
 }