コード例 #1
0
        /// <summary>
        /// Runs all tests that are expected to pass
        /// </summary>
        private void VerifyTestsPass()
        {
            // Test applicant search passed
            _searchFor.SearchForPerson("applicant", _userData.GetEmail(), _userData.GetFirstName(), _userData.GetLastName(), _userData.GetID(),
                                       _userData.GetPostalCode(), _userData.GetCEEBCode());
            _pageValidation.VerifyResultsAreFound();
            AmountPassed++;

            // Test recommender search passed
            _searchFor.SearchForPerson("rec", _recData.GetEmail(), _recData.GetFirstName(), _recData.GetLastName(), _recData.GetID(), "", "");
            _pageValidation.VerifyResultsAreFound();
            AmountPassed++;

            // Test high school search passed
            _searchFor.SearchForSchool("High school", _schoolData.GetCEEBCode(), _schoolData.GetName(), _schoolData.GetCity(), _schoolData.GetState());
            _pageValidation.VerifyResultsAreFound();
            AmountPassed++;

            // Test college search passed
            _searchFor.SearchForSchool("college", _schoolData.GetCEEBCode(), _schoolData.GetName(), _schoolData.GetCity(), _schoolData.GetState());
            _pageValidation.VerifyResultsAreFound();
            AmountPassed++;
        }