示例#1
0
        public void CanInsertVehicleModel()
        {
            var repo = new VehicleModelRepository();

            ModelsItem newModel = new ModelsItem()
            {
                VehicleModelName = "Matrix",
                VehicleMakeId    = 5,
                UserId           = "00000000-0000-0000-0000-000000000000"
            };

            repo.Insert(newModel);

            var allModels = repo.GetVehicleModels().ToList();

            Assert.AreEqual(6, allModels.Count());
            Assert.AreEqual("Matrix", allModels[5].VehicleModelName);
        }