Esempio n. 1
0
        public void ValidateSearchRequest_InvalidAtLeastOneAdultPerRoomSearchReqest_ShouldThrowException()
        {
            //Arrange

            //Act
            var availabilityService = new AvailabilityService(_hotelRepository.Object, _hotelAvailability.Object, _pricingService.Object);

            //Assert
            Assert.Throws <Exception>(() => availabilityService.ValidateSearchRequest(_searchFixtureData.RequestCase4));
        }
Esempio n. 2
0
        public void ValidateSearchRequest_InvalidDateFromIsBiggerThanDateToInSearchReqest_ShouldThrowException()
        {
            //Arrange

            //Act
            var availabilityService = new AvailabilityService(_hotelRepository.Object, _hotelAvailability.Object, _pricingService.Object);

            //Assert
            Assert.Throws <Exception>(() => availabilityService.ValidateSearchRequest(_searchFixtureData.RequestCase3));
        }