コード例 #1
0
 public void WhenIProvideMyAndAndAndAndAndAndAndAndAndAnd(string firstName, string lastName, string mobile, string email, string restaurant, string street, string city, string postCode, string cuisine, string status, string drivers)
 {
     _restaurantSignUpWizardPage = new RestaurantSignUpWizardPage(_webDriver);
     _isWizard = _restaurantSignUpWizardPage.IsWizardPresent();
     if (_isWizard)
     {
         _restaurantSignUpWizardPage.FillWizardForm(restaurant, postCode, mobile, email);
         _restaurantSignUpWizardPage.SubmitWizardForm();
         _restaurantSignUpPage = new RestaurantSignUpPage(_webDriver);
         _restaurantSignUpPage.FillForm(firstName, lastName, street, city, postCode);
         _restaurantSignUpPage.SelectCuisine(cuisine);
         _restaurantSignUpPage.SelectFulfillment(status);
         _restaurantSignUpPage.SubmitForm();
     }
     else
     {
         _restaurantSignUpWizardPage.RegisterInterest();
         _signUpPage = new SignUpPage(_webDriver);
         _signUpPage.FillForm(firstName, lastName, mobile, email, restaurant, street, city, postCode);
         _signUpPage.SelectCuisine(cuisine);
         _signUpPage.SelectFulfillment(status);
         _signUpPage.SelectDrivers(drivers);
         _signUpPage.SubmitForm();
     }
 }