Example #1
0
        public static void CleanUp()
        {
            var manterVisao = new ManterVisao();

            var visoes = manterVisao.GetAll().Where(v => v.Nome.Contains("Teste"));
            foreach (var visao in visoes)
                manterVisao.Delete(visao);
        }
Example #2
0
        public void DeletandoVisao()
        {
            var manterVisao = new ManterVisao();
            manterVisao.Delete(visao);

            var visaoDeletada = manterVisao.FindById(visao.Id);

            Assert.IsNull(visaoDeletada);
        }