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); } }
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); } }