Пример #1
0
        public void TestDeleteCalendarAndApropriateCalendarDays()
        {
            SqlCalendar sql = new SqlCalendar();

            sql.DeleteCalendarAndApropriateCalendarDays(1);

            IEnumerable <ClassCalendarDay> query =
                from elem in sql.ListOfCalendarDays(1)
                select elem;

            Assert.Empty(query);

            IEnumerable <ClassCalendar> query2 =
                from elem in sql.CalendarList()
                where elem.CalendarId == 1
                select elem;

            Assert.Empty(query2);
        }