public void CanLoadCarsEF() { IVehicleRepository repo = new EFRepo(); var vehicle = repo.GetAll(); Assert.AreEqual(9, vehicle.Count); Assert.AreEqual("Silver", vehicle[0].Color); Assert.AreEqual("White", vehicle[0].Interior); Assert.AreEqual("Manual", vehicle[0].Transmission); Assert.AreEqual("1XP7DU9X48D704313", vehicle[0].VinNumber); }
public void CanLoadDvdsWithEF() { IDvdRepository repo = new EFRepo(); var dvd = repo.GetAll(); Assert.AreEqual(8, dvd.Count); Assert.AreEqual(2, dvd[0].DvdId); Assert.AreEqual("FaceOff", dvd[0].Title); Assert.AreEqual(1997, dvd[0].ReleaseYear); }