public void GetNumbersOfGuestsSuccess()
        {
            ObservableCollection <Guest> testCollection = new ObservableCollection <Guest>();

            testCollection = PersistenceService.GetGuestsAsync().Result;
            //Forventer en Success, da der er 34 gæster på listen pt.
            Assert.AreEqual(34, testCollection.Count);
        }
예제 #2
0
        // Read/GET listen af Guests
        public async Task GetGuestsAsync()
        {
            //this.GuestsCollection = await PersistenceService.GetGuestsAsync();

            // Kan ikke forstå hvorfor et response skal foreach'es?
            foreach (var item in await PersistenceService.GetGuestsAsync())
            {
                this.GuestsCollection.Add(item);
            }
        }