Beispiel #1
0
 public void DistrictControllerTest_Get()
 {
     Task.Run(async() =>
     {
         var district    = await controller.GetAsync(1);
         string expected = "denmark";
         Assert.IsTrue(district.Name.ToLower().Contains(expected));
     }).GetAwaiter().GetResult();
 }
Beispiel #2
0
 private void LoadDistrict(object sender, DoWorkEventArgs e)
 {
     this.districts = DistrictController.GetAsync().Result;
 }