public void TestTermsForSpecifiedYearAndMonth(int termId, int calendarDayId, int calendarDoctorId, int officeNumber, int year, int month) { SqlCalendar sql = new SqlCalendar(); IEnumerable <ClassTerm> query = from elem in sql.TermsForSpecifiedYearAndMonth(year, month) where elem.TermId == termId && elem.CalendarDay.CalendarDayId == calendarDayId && elem.CalendarDoctor.CalendarDoctorId == calendarDoctorId && elem.Office.OfficeNumber == officeNumber select elem; Assert.Single(query); }