public void Assert_That_Page_Paths_Are_Correct() { VerifyThat.IsTrue(ContactsPage.IsAt, "Contact page path is not the expected one"); ContactsPage.OpenFirstContact(); VerifyThat.IsTrue(ContactViewPage.IsAt, "Contact view page path is not the expected one"); EditContactPage.GoTo(); VerifyThat.IsTrue(EditContactPage.IsAt, "Edit contact page path is not the expected one"); EditContactPage.ClickSaveContactButton(); VerifyThat.IsTrue(ContactViewPage.IsAt, "Contact view page path is not the expected one"); LeftSideMenu.GoToContacts(); NewContactPage.GoTo(); VerifyThat.IsTrue(NewContactPage.IsAt, "New contact page path is not the expected one"); ContactCreator.CreateSimpleContact(); OrganizationsPage.FindOrganization().WithOrganizationName(ContactCreator.FirstContact.OrganizationName).Open(); OrganizationViewPage.FindContactFromOrganizationContactList().WithFirstName(ContactCreator.FirstContact.FirstName).AndLastName(ContactCreator.FirstContact.LastName).Open(); VerifyThat.IsTrue(ContactViewPage.IsAtFromWithinOrganizationViewPage, "Contact view page path from within organization view page is not the expected one"); EditContactPage.GoTo(); VerifyThat.IsTrue(EditContactPage.IsAtFromWithinOrganizationViewPage, "Edit contact page path from within organization view page is not the expected one"); EditContactPage.ClickSaveContactButton(); VerifyThat.IsTrue(ContactViewPage.IsAtFromWithinOrganizationViewPage, "Contact view page path from within organization view page is not the expected one"); OrganizationsPage.FindOrganization().WithOrganizationName(ContactCreator.FirstContact.OrganizationName).Open(); OrganizationViewPage.CreateContact(); VerifyThat.IsTrue(NewContactPage.IsAtFromWithinOrganizationViewPage, "Contact view page path from within organization view page is not the expected one"); }
protected override void EditSelectedViewModel() { var window = new EditContactPage(); window.ShowDialog(); }