public void GetCountryPublicHolidayByYear_WithInvalidParameters_ReturnNull() { // Arrange IPublicHolidaysService publicHolidaysService = new PublicHolidaysService(); PublicHolidaysBL publicHolidaysBL = new PublicHolidaysBL(publicHolidaysService); // Act var result = publicHolidaysBL.GetCountryPublicHolidayByYear(-2019); // Assert Assert.IsNull(result); }
public void GetCountryPublicHolidayByYear_WithValidParameters_ReturnExpectedResult() { // Arrange IPublicHolidaysService publicHolidaysService = new PublicHolidaysService(); PublicHolidaysBL publicHolidaysBL = new PublicHolidaysBL(publicHolidaysService); // Act var result = publicHolidaysBL.GetCountryPublicHolidayByYear(2019); // Assert Assert.IsNotNull(result); Assert.AreEqual(result.Count, 92); }