Example #1
0
        public void Delete()
        {
            InitializeDataBase();

            // Use a clean instance of the context to run the test
            using (var context = new AtividadeContext(options))
            {
                AtividadeController atividadeController = new AtividadeController(context);
                Atividade           atividade           = atividadeController.DeleteAtividade(2).Result.Value;
                Assert.Null(atividade);
            }
        }