コード例 #1
0
        public async Task Active_ShouldReturnOnlyDocActiveEqualTrue()
        {
            // Arrange
            await CreateAndCommit("categorias/TestActive", true, null, null, "Test Ativos");

            // Act
            var result = await categoriaController.Active();

            var categoriasResult = result.Value as List <Categoria>;

            // Assert
            foreach (var categoriayResult in categoriasResult)
            {
                Assert.True(categoriayResult.Active);
            }
        }