예제 #1
0
        public void GetPostponedHolidaysData_Default_AllUAPostponedHolidays()
        {
            //Arrange
            List <DateTime> exHolidaysList = (from holiday in mock.Object.Holidays where (holiday.CountryID == 1 && holiday.IsPostponed) orderby holiday.HolidayDate select holiday.HolidayDate.ToUniversalTime()).ToList();

            //Act
            List <DateTime> actHolidaysList = controller.GetPostponedHolidaysData();

            //Assert
            Assert.AreEqual(exHolidaysList, actHolidaysList);
        }