public void GetAllLocationsShouldReturnAllLocations()
 {
     using (var context = new Entity.StoreDBContext(options))
     {
         ILocationRepository _repo = new LocationRepoDB(context, new StoreMapper());
         var location = _repo.GetLocations();
         Assert.Equal(2, location.Count());
     }
 }
 public void SearchSpecificLocationShouldReturnLocation()
 {
     using (var context = new Entity.StoreDBContext(options))
     {
         ILocationRepository _repo = new LocationRepoDB(context, new StoreMapper());
         var location = _repo.GetSpecificLocation(0);
         Assert.Equal(location, location);
     }
 }
示例#3
0
 public LocationBL(LocationRepoDB repo)
 {
     _repo = repo;
 }