public void TestMethod1() { using (var context = new SchoolContext()) { Assert.IsTrue( context.People.OfType<Instructor>().Any(p => p.FirstName == "Kim" && p.LastName == "Abercrombie")); } }
public void GivenListOfInstructors_ShouldNotContain_Student() { using (var context = new SchoolContext()) { Assert.IsTrue( context.People.OfType<Student>().Any(p => p.FirstName == "Gytis" && p.LastName == "Barzdukas")); } }