Пример #1
0
        public void TipoDeVeiculoRepositoryEF_Delete()
        {
            rep.Delete(idSuv);
            rep.Save();
            var suv = rep.Get(idSuv);

            Assert.IsNull(suv);

            var hatch = rep.Get(idHatch);

            Assert.IsNotNull(hatch);
            rep.Delete(hatch);
            rep.Save();

            hatch = rep.Get(idHatch);
            Assert.IsNull(hatch);
        }