private async void Continue() { if (!IsDriverInfoValid()) { await DisplayErrorMessage($"{AppResources.Alert_DriverInfoInvalidErrorTitle}", $"{AppResources.Alert_DriverInfoInvalidErrorMessage}", $"{AppResources.Alert_Cancel}"); return; } TestDriveInfo.PlateId = SelectedPlateNumber.Id; SetDateTime(); var listOfCarsViewModel = new ListOfCarsViewModel { TestDriveInfo = TestDriveInfo }; await listOfCarsViewModel.RefreshListOfCarsAsync(); var listOfCarsPage = new ListOfCarsPage(listOfCarsViewModel); await Navigation.PushAsync(listOfCarsPage, true); }
public FilteringInSearchPageSteps(IWebDriver driver) { _driver = ScenarioContext.Current.Get <IWebDriver>("currentDriver"); filteringPage = new FilteringPage(_driver); homePage = new HomePage(_driver); listOfCarsPage = new ListOfCarsPage(_driver); carSinglePage = new CarSinglePage(_driver); }