public void CanRemoveCarModel() { var repo = new CarModelRepository(); Assert.AreEqual(9, repo.GetAll().Count); repo.Remove(1); Assert.AreEqual(8, repo.GetAll().Count); }
public void CanAddCarModel() { var repo = new CarModelRepository(); Assert.AreEqual(9, repo.GetAll().Count); repo.Add(new CarModel() { MakeId = 1, CarModelName = "Big" }); Assert.AreEqual(10, repo.GetAll().Count); }
public void CanGetAllCarModel() { var repo = new CarModelRepository(); Assert.AreEqual(9, repo.GetAll().Count); }