コード例 #1
0
        public async Task PedidoPut()
        {
            var pedido = new Pedido.Pedido {
                NomeCliente = "Lorran",
                Cpf         = "99999999999",
                ValorTotal  = 1000.19
            };
            // Act
            IActionResult actionResult = await _pedidoController.AlteraPedido(pedido);

            // Assert
            Assert.NotNull(actionResult);

            OkObjectResult result = actionResult as OkObjectResult;

            Assert.NotNull(result);

            Assert.Equal(200, result.StatusCode);
        }