public void GetHotelsTranslate()
        {
            HotelSearchByCityName hotelSearchByCity = new HotelSearchByCityName();

            HotelResponse hotelResponse = hotelSearchByCity.GetHotels();

            Assert.IsNull(hotelResponse.HotelStatus);

            Assert.IsNotNull(hotelResponse.Hotels);
        }
        public void GetHotelsTestByCityName()
        {
            HotelSearchByCityName hotelSearchByCity = new HotelSearchByCityName();

            hotelSearchByCity.CityName = "goa";

            HotelResponse hotelResponse = hotelSearchByCity.GetHotels();

            Assert.IsNull(hotelResponse.HotelStatus);

            Assert.IsNotNull(hotelResponse.Hotels);
        }
Ejemplo n.º 3
0
        public void HotelFilterByRatingTests()
        {
            HotelSearchByCityName hotelSearchByCity = new HotelSearchByCityName();

            hotelSearchByCity.CityName = "goa";

            HotelResponse hotelResponse = hotelSearchByCity.GetHotels();

            int count = hotelResponse.Hotels.Count;

            HotelFilters hotelFilter = new HotelFilters();

            hotelFilter.FilterByRating(hotelResponse.Hotels, "4");

            Assert.AreNotEqual(hotelResponse.Hotels.Count, count);
        }