Esempio n. 1
0
 public async void GetStoreByGeoJsonTest()
 {
     var subdivService = new SubdivisionService();
     var subdiv = await subdivService.LoadById(3501005);
     var storesService = new LcboService();
     var stores = await storesService.StoresInArea(subdiv.GeoJSON);
     Assert.That(stores.Count, Is.GreaterThan(0));
 }
Esempio n. 2
0
 public async void GetStoresTest()
 {
     var service = new LcboService();
     var stores = await service.GetLcboStores();
     Assert.That(stores.Count, Is.EqualTo(100));
     Assert.That(stores.All(s => s.Id > 0));
     Assert.That(stores.All(s => !string.IsNullOrWhiteSpace(s.Name)));
     Assert.That(stores.All(s => s.GeoJSON != null));
     Assert.That(stores.All(s => s.Volumes.Total > 0));
 }