Exemplo n.º 1
0
 public async void GetStore568YongeAndDundas()
 {
     using (StoresController controller = new StoresController())
     {
         var store = await controller.Get(568);
         Assert.That(store.AddressLine, Is.EqualTo("595 Bay Street"));
         Assert.That(store.Latitude, Is.EqualTo(43.6563M));
         Assert.That(store.Longitude, Is.EqualTo(-79.3813M));
     }
 }
Exemplo n.º 2
0
 public async void GetAllStores()
 {
     using (StoresController controller = new StoresController())
     {
         var stores = await controller.Get();
         Assert.That(stores.Count(), Is.GreaterThan(500));
         var store568 = stores.Single(p => p.StoreNumber == 568);
         Assert.That(store568.AddressLine, Is.EqualTo("595 Bay Street"));
         Assert.That(store568.City, Is.EqualTo("Toronto"));
         Assert.That(store568.TelephoneNumber, Is.EqualTo("(416) 979-9978"));
         Assert.That(store568.Latitude, Is.EqualTo(43.6563M));
         Assert.That(store568.Longitude, Is.EqualTo(-79.3813M));
     }
 }