Exemplo n.º 1
0
        public void filterWithTimespan()
        {
            BookingLocationFilter locFilter = new BookingLocationFilter(location, 2);
            List <Booking>        result    = locFilter.filter(DateTime.Now, bookings);

            Assert.IsTrue(result.Contains(booking2) && result.Count == 1);
        }
Exemplo n.º 2
0
        public void returnNull()
        {
            BookingLocationFilter locFilter = new BookingLocationFilter(new Location()
            {
                name = "Hamburg"
            });
            List <Booking> result = locFilter.filter(DateTime.Now, bookings);

            Assert.IsTrue(result.Count == 0);
        }