Example #1
0
        protected void populateDeleteEventCheckBox()
        {
            CalendarBLL calendarBLL = new CalendarBLL();
            ArrayList events = calendarBLL.getCalendarEvents(currentCalendar.getCalendarId());

            ArrayList names = new ArrayList();
            foreach (CalendarEvent e in events)
            {
                names.Add(e.getName());
            }

            DeleteEventCheckBox.DataSource = names;
            DeleteEventCheckBox.DataBind();
        }
 public void getCalendarEventsTest()
 {
     CalendarBLL target = new CalendarBLL(); // TODO: Initialize to an appropriate value
     int calendarId = 0; // TODO: Initialize to an appropriate value
     ArrayList expected = null; // TODO: Initialize to an appropriate value
     ArrayList actual;
     actual = target.getCalendarEvents(calendarId);
     Assert.AreEqual(expected, actual);
 }