public void TestaObtemFormaPagamentoInvalido() { IGatewayPagamento gatewayPagamentoService = new GatewayPagamentoService(); PagamentoService pagamentoService = new PagamentoService(gatewayPagamentoService); pagamentoService.ObtemFormaPagamentoCartao(FormaPagamento.Dinheiro); }
public void TestaObtemFormaPagamentoCartaoCredito() { IGatewayPagamento gatewayPagamentoService = new GatewayPagamentoService(); PagamentoService pagamentoService = new PagamentoService(gatewayPagamentoService); Assert.AreEqual(FormaPagamentoCartao.Credito, pagamentoService.ObtemFormaPagamentoCartao(FormaPagamento.CartaoCredito)); }