Exemplo n.º 1
0
        public void TestAreaCollection()
        {
            var ac = PersistencyService.LoadAreasAsync();

            Assert.AreNotEqual(null, ac.Result);
            Assert.AreNotEqual(0, ac.Result.Count);
        }
Exemplo n.º 2
0
 public async Task GetAreaCollection()
 {
     //Brug foreach hvis LoadGreenkeepersAsync() i PersistencyService kodes som async:
     foreach (var item in await PersistencyService.LoadAreasAsync())
     {
         Mwm.AreaCollection.Add(item);
     }
 }