Пример #1
0
        public void QueryArgsIssues_WhenBadParams_fromDate_null()
        {
            // Make the call
            DefaultAvailabilityService service = new DefaultAvailabilityService(_context);
            var result = service.QueryArgsIssues(null, null, null);

            // Validate the result
            Assert.NotNull(result);
            Assert.Equal(Constants.QUERYARGSISSUES_FROMDATE, result);
        }
Пример #2
0
        public void QueryArgsIssues_WhenBadParams_toDate_invalid()
        {
            // Make the call
            DefaultAvailabilityService service = new DefaultAvailabilityService(_context);
            var result = service.QueryArgsIssues(DateTime.UtcNow.Date, DateTime.UtcNow.Date.AddDays(-1), null);

            // Validate the result
            Assert.NotNull(result);
            Assert.Equal(Constants.QUERYARGSISSUES_TODATE, result);
        }
Пример #3
0
        public void QueryArgsIssues_WhenBadParams_passengers_invalid()
        {
            // Make the call
            DefaultAvailabilityService service = new DefaultAvailabilityService(_context);
            var result = service.QueryArgsIssues(DateTime.UtcNow.Date, DateTime.UtcNow.Date, 0);

            // Validate the result
            Assert.NotNull(result);
            Assert.Equal(Constants.QUERYARGSISSUES_PASSENGERS, result);
        }