Beispiel #1
0
        public void LoadCountriesMethod_ShouldMakeCountries_WhenCalled()
        {
            CountryViewModel cvm = new CountryViewModel();
            ObservableCollection <ICountry> collection          = new ObservableCollection <ICountry>();
            ObservableCollection <ICountry> collectionAfterLoad = new ObservableCollection <ICountry>();

            collectionAfterLoad = cvm.Countries;

            cvm.LoadCountries();

            Assert.AreNotEqual(collection, collectionAfterLoad);
        }
Beispiel #2
0
 protected async override void OnAppearing()
 {
     base.OnAppearing();
     await vm.LoadCountries();
 }