Пример #1
0
 public void RepresentativesTestsInitialize()
 {
     _txtName           = new HtmlTextBoxTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_txtName");
     _txtEmailAddress   = new HtmlTextBoxTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_txtEmailAddress");
     _btnSearch         = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_btnSearch");
     _lnkRepresentative = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_TopContent") + "_ucRepresentativeContactsList_rptContacts_ctl00_ucContactsListDetails_lnkFullName");
 }
Пример #2
0
        private void FollowViewFriendsLink(IList <Member> friends, int index)
        {
            var lnkFullName = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_Content") + "_contactsListControl_rptContacts_ctl" + index.ToString("D2") + "_ucContactsListDetails_lnkViewFriends");

            lnkFullName.Click();

            AssertPage <ViewFriendsFriends>();
            AssertPageContains(friends[index].FullName);
        }
Пример #3
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _txtQuery = new HtmlTextBoxTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_txtQuery");
            _txtEmail = new HtmlTextBoxTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_txtEmail");

            _btnSearch = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_btnSearch");

            _lnkAddToFriends0 = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_BottomContent") + "_ucResultList_rptContacts_ctl00_ucContactsListDetails_lnkAddToFriends");
            _lnkAddToFriends1 = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_BottomContent") + "_ucResultList_rptContacts_ctl01_ucContactsListDetails_lnkAddToFriends");
        }
Пример #4
0
        public void TestInitialize()
        {
            _resendActivationEmailButton = new HtmlButtonTester(Browser, "ResendActivationEmail");
            _changeEmailAddressLink      = new HtmlLinkTester(Browser, "ChangeEmailAddress");
            _cancelButton = new HtmlButtonTester(Browser, "cancel");

            _notActivatedUrl   = new ReadOnlyApplicationUrl(true, "~/accounts/notactivated");
            _activationSentUrl = new ReadOnlyApplicationUrl(true, "~/accounts/activationsent");
            _changeEmailUrl    = new ReadOnlyApplicationUrl(true, "~/accounts/changeemail");

            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            _emailServer.ClearEmails();
        }
Пример #5
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _txtEmailAddresses       = new HtmlTextAreaTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFriends_txtEmailAddresses");
            _btnSendInvitations      = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnSendInvitations");
            _lnkAcceptInvitation     = new HtmlLinkButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_lnkAcceptInvitation");
            _lnkIgnoreInvitation     = new HtmlLinkButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_lnkIgnoreInvitation");
            _lnkRemoveFriend         = new HtmlLinkTester(Browser, "lnkRemoveFriend");
            _lnkViewResume           = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_Content") + "_ahrefViewResume");
            _lnkRemoveRepresentative = new HtmlLinkTester(Browser, "lnkRemoveRepresentative");
            _btnRemoveRepresentative = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnRemoveRepresentative");
        }
Пример #6
0
        private void AssertLinks(IList <Member> friends)
        {
            for (var index = 0; index < friends.Count; ++index)
            {
                var friend = friends[index];
                var view   = new PersonalView(friend, PersonalContactDegree.FirstDegree, PersonalContactDegree.FirstDegree);

                var lnkFullProfile = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_Content") + "_contactsListControl_rptContacts_ctl" + index.ToString("D2") + "_ucContactsListDetails_lnkFullProfile");
                Assert.IsTrue(lnkFullProfile.IsVisible);

                var lnkViewFriends = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_Content") + "_contactsListControl_rptContacts_ctl" + index.ToString("D2") + "_ucContactsListDetails_lnkViewFriends");
                Assert.AreEqual(lnkViewFriends.IsVisible, view.CanAccess(PersonalVisibility.FriendsList));
            }
        }
Пример #7
0
        public void TestInitialize()
        {
            _sendButton                   = new HtmlButtonTester(Browser, "send");
            _emailAddressTextBox          = new HtmlTextBoxTester(Browser, "EmailAddress");
            _secondaryEmailAddressTextBox = new HtmlTextBoxTester(Browser, "SecondaryEmailAddress");
            _cancelButton                 = new HtmlButtonTester(Browser, "cancel");
            _changeEmailAddressLink       = new HtmlLinkTester(Browser, "ChangeEmailAddress");

            _notActivatedUrl   = new ReadOnlyApplicationUrl(true, "~/accounts/notactivated");
            _activationSentUrl = new ReadOnlyApplicationUrl(true, "~/accounts/activationsent");
            _changeEmailUrl    = new ReadOnlyApplicationUrl(true, "~/accounts/changeemail");
            _profileUrl        = new ReadOnlyApplicationUrl(true, "~/members/profile");

            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            _emailServer.ClearEmails();
        }
Пример #8
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _activationUrl     = new ReadOnlyApplicationUrl("~/accounts/activation");
            _notActivatedUrl   = new ReadOnlyApplicationUrl(true, "~/accounts/notactivated");
            _activationSentUrl = new ReadOnlyApplicationUrl(true, "~/accounts/activationsent");
            _changeEmailUrl    = new ReadOnlyApplicationUrl(true, "~/accounts/changeemail");
            _profileUrl        = new ReadOnlyApplicationUrl(true, "~/members/profile");

            _loginIdTextBox         = new HtmlTextBoxTester(Browser, "LoginId");
            _passwordTextBox        = new HtmlPasswordTester(Browser, "Password");
            _loginButton            = new HtmlButtonTester(Browser, "login");
            _changeEmailAddressLink = new HtmlLinkTester(Browser, "ChangeEmailAddress");
            _sendButton             = new HtmlButtonTester(Browser, "send");
            _emailAddressTextBox    = new HtmlTextBoxTester(Browser, "EmailAddress");
        }
Пример #9
0
        public void TestInitialize()
        {
            _emailServer.ClearEmails();

            _loginUrl              = new ReadOnlyApplicationUrl(true, "~/login");
            _employerLoginUrl      = new ReadOnlyApplicationUrl(true, "~/employers/login");
            _mustChangePasswordUrl = new ReadOnlyApplicationUrl(true, "~/accounts/mustchangepassword");
            _notActivatedUrl       = new ReadOnlyApplicationUrl(true, "~/accounts/notactivated");
            _newPasswordUrl        = new ReadOnlyApplicationUrl(true, "~/accounts/newpassword");

            _loginIdTextBox     = new HtmlTextBoxTester(Browser, "LoginId");
            _sendButton         = new HtmlButtonTester(Browser, "send");
            _doneButton         = new HtmlButtonTester(Browser, "done");
            _forgotPasswordLink = new HtmlLinkTester(Browser, "ForgotPassword");
            _cancelButton       = new HtmlButtonTester(Browser, "cancel");

            _passwordTextBox           = new HtmlPasswordTester(Browser, "Password");
            _newPasswordTextBox        = new HtmlPasswordTester(Browser, "NewPassword");
            _confirmNewPasswordTextBox = new HtmlPasswordTester(Browser, "ConfirmNewPassword");
            _saveButton = new HtmlButtonTester(Browser, "save");
        }
Пример #10
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _lnkViewFriends = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_Content") + "_contactsListControl_rptContacts_ctl00_ucContactsListDetails_lnkViewFriends");
        }
Пример #11
0
 public void TestInitialize()
 {
     _continueLink = new HtmlLinkTester(Browser, "Continue");
 }