public void Weekend_are_closed() { var calendar = new MiniCalendar(); Assert.IsTrue(calendar.IsOpen(new DateTime(2015, 4, 10))); Assert.IsFalse(calendar.IsOpen(new DateTime(2015, 4, 11))); Assert.IsFalse(calendar.IsOpen(new DateTime(2015, 4, 12))); }
public void Bank_hollidays_are_closed() { var calendar = new MiniCalendar(); calendar.AddBankHolliday(new DateTime(2015, 4, 8)); Assert.IsFalse(calendar.IsOpen(new DateTime(2015, 4, 8))); }
public void Regular_days_are_open() { var calendar = new MiniCalendar(); Assert.IsTrue(calendar.IsOpen(new DateTime(2014, 4, 8))); }