private static void CreateTestEvents() { calendar.CreateEvent(new CalendarEvent("Today", "Content", "Location", period.Today().Start, period.Today().End)); calendar.CreateEvent(new CalendarEvent("Tomorrow", "Content", "Location", period.Tomorrow().Start, period.Tomorrow().End)); calendar.CreateEvent(new CalendarEvent("This Week Wednesday", "Content", "Location", period.ThisWeek().Start.AddDays(2), period.ThisWeek().Start.AddDays(2).AddHours(5))); calendar.CreateEvent(new CalendarEvent("Next Week Friday", "Content", "Location", period.NextWeek().Start.AddDays(4), period.NextWeek().Start.AddDays(4).AddHours(5))); calendar.CreateEvent(new CalendarEvent("This Month 20", "Content", "Location", period.ThisMonth().Start.AddDays(19), period.ThisMonth().Start.AddDays(19).AddHours(5))); calendar.CreateEvent(new CalendarEvent("Next Month 25", "Content", "Location", period.NextMonth().Start.AddDays(24), period.NextMonth().Start.AddDays(24).AddHours(5))); //calendar.CreateEvent(new CalendarEvent("Next + 3 Month Single (last month 19)", "Content", "Location", period.NextNMonth(3, true).Start.AddDays(18), period.NextNMonth(3, true).Start.AddDays(18).AddHours(5))); //calendar.CreateEvent(new CalendarEvent("Next + 3 Month Period (+ 2 month 17)s", "Content", "Location", period.NextNMonth(2, false).Start.AddMonths(2).AddDays(16), period.NextNMonth(2, false).Start.AddMonths(2).AddDays(16).AddHours(5))); }
public void CreateEventTest() { calendar.CreateEvent(new CalendarEvent("Today", "Content", "Location", period.Today().Start, period.Today().End)); }