コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }