public void CitiesTest() { Check.That(_repository.Cities()).IsInstanceOf <List <City> >(); Assert.NotEmpty(_repository.Cities()); }
// private readonly IRepositoryCity _repositoryCity = new CityRepository(new DataJson(@"c:/temp/cities.json")); // GET api/values public IEnumerable <City> Get() { Logger.Info("get all " + DateTime.Now); return(_repositoryCity.Cities()); }
public void CitiesTest() { Assert.NotEmpty(_repository.Cities()); }