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