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

            sql.UpdateOffice(1, 200);

            IEnumerable <ClassTerm> query =
                from elem in sql.ListOfTerms()
                where elem.TermId == 1 && elem.Office.OfficeNumber == 200
                select elem;

            Assert.Single(query);
        }