public void CanLoadDvd() { var repo = new DvdRepositoryADO(); var dvds = repo.GetAllDvds(); Assert.AreEqual(2, dvds.Count); Assert.AreEqual("The Lion King", dvds[0].Title); Assert.AreEqual(2010, dvds[1].ReleaseYear); Assert.AreEqual("Ehhhhh", dvds[1].Notes); Assert.AreNotEqual("Some Guy", dvds[1].Director); }
public void ADOCanLoadDvds() { DvdRepositoryADO repo = new DvdRepositoryADO(); var dvds = repo.GetAllDvds(); Assert.AreEqual(3, dvds.Count); Assert.AreEqual("Office Space", dvds[0].Title); Assert.AreEqual("Director A", dvds[0].Director); Assert.AreEqual("R", dvds[0].Rating); Assert.AreEqual(1999, dvds[0].ReleaseYear); Assert.AreEqual("funny movie", dvds[0].Notes); }