コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }