Exemplo n.º 1
0
        public async Task ConfirmDelete_DeveDeletarUmModeloDoDatabaseUmModelo()
        {
            // Arrange
            await CreateAndCommit("modelos/TestConfirmDelete", true, null, null, null, null, "ConfirmDeleteTest");

            // Act
            await modeloController.ConfirmDelete("TestConfirmDelete");

            var modeloResult = await serviceBase.FindAsync("modelos/TestConfirmDelete");

            // Assert
            Assert.Null(modeloResult);
        }