Exemple #1
0
        public void TestUpdateCalendarStatus()
        {
            SqlCalendar sql = new SqlCalendar();

            sql.UpdateCalendarStatus(3, 3);

            IEnumerable <ClassCalendar> query =
                from elem in sql.CalendarList()
                where elem.Status.StatusId == 3 && elem.CalendarId == 3
                select elem;

            Assert.Single(query);
        }