private static void RunCalendarEventCreation() { Console.WriteLine("Creating Calendar event"); ICalendar calendar = Resolver.Resolve <ICalendar>(); Console.WriteLine("Initializing Calendar event"); calendar.Init(); Console .WriteLine(String.Format("Calendar event initialized at {0}", calendar.InitiatedAt)); calendar.Start = DateTime.Today; calendar.Duration = 2.5; Console.WriteLine("Adding attendees to calendar event"); calendar.AddAttendee("Josep"); calendar.AddAttendee("Ruben"); calendar.AddAttendee("Andreja"); Console.WriteLine("Calendar event info:"); Console.WriteLine(calendar.GetAppointmentInfo()); Console.WriteLine("Calendar event attendees:"); calendar.Attendees.ToList().ForEach(u => Console.WriteLine(u.Name)); AddSeparator(); }