Esempio n. 1
0
        private void ChangeContactInfo()
        {
            var consultantProfilePage = new ProfilePage(_rootUrl, _browser, _delay);

            consultantProfilePage.EditContactInfoLink.Click();

            var fakeIdentity        = FakeIdentity.Generate();
            var editContactInfoPage = new EditContactInfoPage(_rootUrl, _browser, _delay);

            editContactInfoPage.FillForm(
                fakeIdentity.FirstName,
                fakeIdentity.LastName,
                fakeIdentity.EmailAddress,
                fakeIdentity.Phone);
            editContactInfoPage.SubmitForm();
        }
Esempio n. 2
0
        private void SignUpForANewAccount()
        {
            var fakeIdentity = FakeIdentity.Generate();

            var registrationPage = new RegistrationPage(_rootUrl, _browser, _delay);

            registrationPage.Navigate();

            registrationPage.FillForm(
                fakeIdentity.EmailAddress,
                fakeIdentity.Password,
                AccountTypes.CONSULTANT,
                fakeIdentity.FirstName,
                fakeIdentity.LastName,
                fakeIdentity.Phone);

            registrationPage.SubmitForm();
        }