Esempio n. 1
0
        public void Test_StaySearchFilter_CreateLodgingIdFilter()
        {
            var staySearchFilter = new StaySearchFilter(_singleSearchFilterQuery);

            staySearchFilter.CreateLodgingIdFilter("");
            Assert.Empty(staySearchFilter.Filters);
        }
Esempio n. 2
0
        public void Test_StaySearchFilter_CreateDateFilter(string dateFilter)
        {
            var staySearchFilter = new StaySearchFilter(_singleSearchFilterQuery);

            staySearchFilter.CreateDateFilter(dateFilter);
            Assert.Empty(staySearchFilter.Filters);
        }
Esempio n. 3
0
        public void Test_StaySearchFilter_Successful_CreateLodgingIdFilter(StaySearchQueries staySearchQueries)
        {
            var staySearchFilter = new StaySearchFilter(staySearchQueries);

            staySearchFilter.CreateLodgingIdFilter("1");
            Assert.Single(staySearchFilter.Filters);
            Assert.Equal(1, staySearchFilter.LodgingId);
        }
Esempio n. 4
0
        public void Test_StaySearchFilter_Successful_CreateDateFilter()
        {
            var staySearchFilter = new StaySearchFilter(_singleSearchFilterQuery);

            staySearchFilter.CreateDateFilter("2020-01-01to2020-01-03");
            Assert.Equal(2, staySearchFilter.Filters.Count);
            Assert.NotEqual(DateTime.MinValue, staySearchFilter.CheckIn);
            Assert.NotEqual(DateTime.MinValue, staySearchFilter.CheckOut);
        }