protected void DeleteEventPageClick(object sender, EventArgs e) { CalendarBLL calendarBLL = new CalendarBLL(); String calendarToDeleteEvents = DeleteEventDropDown.SelectedValue; System.Diagnostics.Trace.WriteLine(calendarToDeleteEvents); ProjectManagerLibrary.Models.Calendar calendar = calendarBLL.getCalendarByName(calendarToDeleteEvents); currentCalendar.setCalendarName(calendarToDeleteEvents); currentCalendar.setCalendarId(calendar.getCalendarId()); //currentCalendar.setProjectId(calendar.getProjectId()); populateDeleteEventCheckBox(); DeleteEventPanel.Visible = true; InitPanel.Visible = false; }
protected void ViewCalendarClick(object sender, EventArgs e) { CalendarBLL calendarBLL = new CalendarBLL(); String calendarToView = ViewDropDown.SelectedValue; ProjectManagerLibrary.Models.Calendar calendar = calendarBLL.getCalendarByName(calendarToView); currentCalendar.setCalendarName(calendarToView); currentCalendar.setCalendarId(calendar.getCalendarId()); //currentCalendar.setProjectId(calendar.getProjectId()); System.Diagnostics.Trace.WriteLine("Current calendar set at " + currentCalendar.getCalendarId()); InitPanel.Visible = false; ViewCalendarPanel.Visible = true; }
public void getCalendarByNameTest() { CalendarBLL target = new CalendarBLL(); string calendarName = "UnitTestName"; Calendar actual; actual = target.getCalendarByName(calendarName); Assert.IsNotNull(actual); }