コード例 #1
0
        public async Task List_ShouldListAllCategory()
        {
            // Arrange
            for (int i = 0; i < 4; i++)
            {
                await CreateAndCommit($"categorias/TestList{i}", true, null, null, $"Test List {i}");
            }

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

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

            // Assert
            Assert.InRange(categoriasResult.Count, 3, 9999);
        }