예제 #1
0
        public void FindHotelThatHasSauna()
        {
            SearchPageMethods searchMethods     = new SearchPageMethods(this);
            ResultPageMethods resultPageMethods = new ResultPageMethods(this);

            searchMethods.InsertCity("Limerick");
            searchMethods.StayTime(30);
            searchMethods.OccupancySelection(2, 0, 1);
            searchMethods.Search();
            resultPageMethods.FilterHotelsThatHaveSauna();
            Assert.IsTrue(Driver.PageSource.Contains("Bunratty Castle"));
        }
예제 #2
0
        public void DontFindTheHotelThatHasSauna()
        {
            SearchPageMethods searchMethods     = new SearchPageMethods(this);
            ResultPageMethods resultPageMethods = new ResultPageMethods(this);

            searchMethods.InsertCity("Limerick");
            searchMethods.StayTime(30);
            searchMethods.OccupancySelection(2, 0, 1);
            searchMethods.Search();
            resultPageMethods.FilterHotelsThatHaveSauna();
            Assert.IsFalse(Driver.PageSource.Contains("George Limerick Hotel"));
        }
예제 #3
0
        public void DontFindFiveStarsHotel()
        {
            SearchPageMethods searchMethods     = new SearchPageMethods(this);
            ResultPageMethods resultPageMethods = new ResultPageMethods(this);

            searchMethods.InsertCity("Limerick");
            searchMethods.StayTime(30);
            searchMethods.OccupancySelection(2, 0, 1);
            searchMethods.Search();
            resultPageMethods.SortByStars(1);
            Assert.IsFalse(Driver.PageSource.Contains("George Limerick Hotel"));
        }