public void QuestionnaireCountriesViewModel_InvokeNextButtonClick_UpdatesList(params CountryDetailsViewModel[] list) { AuthenticationState.PersonalData = new PersonalDataModel(); _viewModel.InvokeNextButtonClick(null, null, list.ToList()); Assert.NotNull(AuthenticationState.PersonalData.VisitedCountries); Assert.True(AuthenticationState.PersonalData.VisitedCountries.SequenceEqual(list.Select(c => c.Code).ToList())); }
public void QuestionnaireCountriesViewModel_InvokeNextButtonClick_UpdatesList(params CountryDetailsViewModel[] list) { AuthenticationState.PersonalData = new PersonalDataModel { TokenExpiration = DateTime.Now.AddHours(1), Covid19_smitte_start = "2021-03-08" }; _viewModel.InvokeNextButtonClick(null, null, list.ToList()); Assert.NotNull(AuthenticationState.PersonalData.VisitedCountries); Assert.True(AuthenticationState.PersonalData.VisitedCountries.SequenceEqual(list.Select(c => c.Code).ToList())); }
private void OnNextButtonClick(object sender, EventArgs args) { _viewModel.InvokeNextButtonClick(GoToLoadingPage, OnFail, _countries); }
partial void NextBtnTapped(CustomSubclasses.DefaultBorderButton sender) { NextBtn.ShowSpinner(View, UIActivityIndicatorViewStyle.White); _viewModel.InvokeNextButtonClick(OnSuccess, OnFail, _countryList); }