예제 #1
0
        public void GetCalendarForTeacherSessionTest()
        {
            ScheduleService target = new ScheduleService(); // TODO: Initialize to an appropriate value

            iCalendar actual;
            int       TeacherID = 3308;

            actual = target.GetTeacherSessionEventsAsICalendar(TeacherID, 49);
            CICalConverter.SerializeCalendar(actual, "C:\\TestTeacherSessionResult.ics");
        }
예제 #2
0
        public void GetCalendarForGroupSessionTest()
        {
            ScheduleService target = new ScheduleService(); // TODO: Initialize to an appropriate value

            iCalendar actual;
            GroupInfo group = new GroupInfo(); // TODO: Initialize to an appropriate value

            group.ID = 804;

            actual = target.GetGroupSessionEventsAsICalendar(group.ID, 49);
            CICalConverter.SerializeCalendar(actual, "C:\\TestGroupSessionResult.ics");
        }
예제 #3
0
        public void GetCalendarForGroupTest()
        {
            ScheduleService target = new ScheduleService(); // TODO: Initialize to an appropriate value

            GroupInfo group = new GroupInfo();              // TODO: Initialize to an appropriate value

            group.ID   = 1181;
            group.Name = "IST-1-09";
            iCalendar actual;

            actual = target.GetGroupEventsAsICalendar(group.ID, target.GetGroupCurrentSemester(group.ID).ID);
            CICalConverter.SerializeCalendar(actual, "C:\\TestResult.ics");
            string       tmp  = CICalConverter.SerializeCalendarToString(actual);
            StreamReader sr   = new StreamReader("C:\\TestResult.ics");
            string       tmp2 = sr.ReadToEnd();
            StreamWriter sw   = new StreamWriter("C:\\StringTestResult.ics");

            sw.Write(tmp);
            sw.Close();
        }