public void WhenDatesAreEmptyReturnsException(DateTime?firstDate, DateTime?endDate) { // Arrange // Action // Assert Assert.Throws <BadRequestException>(() => validatorService.IsDateInputValid(firstDate, endDate)); }