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")); }
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")); }
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")); }