Ejemplo n.º 1
0
        public void GetDoctorList_ReturnsExpectedListOfDoctorEntities()
        {
            using (var dc = new DoctorContext())
            {
                var doctors = dc.GetDoctorList();

                Assert.IsTrue(doctors.ElementAt(0).Id == doctors.Count);
                Assert.IsTrue(doctors.ElementAt(1).Id == doctors.Count - 1);
                Assert.IsTrue(doctors.ElementAt(2).Id == doctors.Count - 2);
            }
        }