public void CanDeleteSpecial() { var repo = new MiscRepo(); repo.DeleteSpecial(1); var specials = repo.GetSpecials(); Assert.AreEqual(1, specials.Count()); }
public void CanGetSpecialById() { var repo = new MiscRepo(); var special = repo.GetSpecialById(2); Assert.AreEqual(2, special.SpecialId); Assert.AreEqual("THE ONE ABOUT AMERICA", special.SpecialTitle); Assert.AreEqual("our greatest president, savoryhams lincols, once said that we must not be enemies but customers. let us all remember to buy a car this gettysburg memorial holiday.", special.SpecialDescription); }
public void GetSpecials() { var repo = new MiscRepo(); List <Specials> specials = repo.GetSpecials(); Assert.AreEqual(2, specials.Count()); Assert.AreEqual(1, specials[0].SpecialId); Assert.AreEqual("BIG OL SPECIAL 1", specials[0].SpecialTitle); Assert.AreEqual("DOOT DOOTY DOOT DOOT THIS IS THE DOOM SONG DOOM DOOM DOOMIDY DOOM DOOM DOOM. buy a car plz.", specials[0].SpecialDescription); }
public void CanInsertSpecial() { Specials newSpecial = new Specials(); var repo = new MiscRepo(); newSpecial.SpecialTitle = "Test Title"; newSpecial.SpecialDescription = "Test Description"; repo.InsertSpecial(newSpecial); Assert.AreEqual(3, newSpecial.SpecialId); }
public void CanUpdateSpecial() { Specials updatedSpecial = new Specials(); var repo = new MiscRepo(); updatedSpecial.SpecialId = 2; updatedSpecial.SpecialTitle = "Updated Title"; updatedSpecial.SpecialDescription = "Updated Description"; repo.UpdateSpecial(updatedSpecial); var special = repo.GetSpecialById(2); Assert.AreEqual("Updated Title", special.SpecialTitle); }