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); } }
public LocationBL(LocationRepoDB repo) { _repo = repo; }