public void PedidoItemValido() { var command = new CreatePedidoItemCommand { Produto = Guid.NewGuid(), Quantidade = 1 }; command.EValido() .Should().BeTrue(ExtrairAsNotificacoes(command)); }
public void PedidoValido() { var command = new CreatePedidoCommand { Cliente = Guid.NewGuid() }; var item = new CreatePedidoItemCommand { Produto = Guid.NewGuid(), Quantidade = 2 }; command.ItensDoPedido.Add(item); command.EValido() .Should().BeTrue(ExtrairAsNotificacoes(command)); }