示例#1
0
        public async Task Add99()
        {
            deliveryContext categoriaProductosContext = new deliveryContext();
            CategoriaProductosController categoriaProductosController = new CategoriaProductosController(categoriaProductosContext);

            for (int i = 0; i < 10; i++)
            {
                var result = await categoriaProductosController.PostCategoriaProducto(new CategoriaProducto()
                {
                    Nombre      = "Libros",
                    Descripcion = "el Principito",
                    Lugar       = "Bolivar"
                });

                Assert.IsNotNull(result.Result);
            }
        }