public void CityLocationTest(string city) { var query = new LocationByCityQuery(EntityDataSet .Instance) .Execute(city); var firstCity = query.Result .Select(l => l.City) .First(); Assert.AreEqual(city, firstCity); }
public LocationController(LocationByIpQuery locationByIpQuery, LocationByCityQuery locationByCityQuery) { _locationByIpQuery = locationByIpQuery; _locationByCityQuery = locationByCityQuery; }