public void GetSpecials() { List <Special> specials = repo.GetSpecials(); var check = specials[0]; Assert.AreEqual(1, check.SpecialId); Assert.AreEqual("MEGA SALE ON COOL CARS", check.SpecialTitle); Assert.AreEqual("THE COOLEST CARS have some MEGA SaLeS", check.SpecialMessage); }
public void CanLoadSpecials() { var repo = new SpecialRepository(); var list = repo.GetSpecials(); Assert.AreEqual(3, list.Count); Assert.AreEqual("College Graduate Program", list[0].Title); }
public void CanAddSpecial() { Special special = new Special() { Title = "New Special", Description = "This is some marketing non-sense to trick you and get your money." }; var repo = new SpecialRepository(); repo.AddSpecial(special); Assert.AreEqual(4, repo.GetSpecials().Count); }