예제 #1
0
        public void CanRemoveCarModel()
        {
            var repo = new CarModelRepository();

            Assert.AreEqual(9, repo.GetAll().Count);
            repo.Remove(1);
            Assert.AreEqual(8, repo.GetAll().Count);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void CanGetAllCarModel()
        {
            var repo = new CarModelRepository();

            Assert.AreEqual(9, repo.GetAll().Count);
        }