Exemplo n.º 1
0
        public async Task Delete_DeveDeixarOModeloInativo()
        {
            // Arrange
            await CreateAndCommit("modelos/TestDelete", true, null, null, null, null, "DeleteTest");

            // Act
            await modeloController.Delete("TestDelete");

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

            // Assert
            Assert.False(modeloResult.Active);
        }