public async Task Invoice_Must_Have_Correct_GatewayName() { _invoiceBuilder.UseMellat(); var invoice = await _invoiceBuilder.BuildAsync(); Assert.IsNotNull(invoice); Assert.IsNotNull(invoice.GatewayName); Assert.IsTrue(invoice.GatewayName.Equals("Mellat", StringComparison.OrdinalIgnoreCase)); }
public async Task Invoice_Must_Have_Correct_GatewayName() { _invoiceBuilder.UseFanAva(); var invoice = await _invoiceBuilder.BuildAsync(); Assert.IsNotNull(invoice); Assert.IsNotNull(invoice.GatewayName); Assert.AreEqual(FanAvaGateway.Name, invoice.GatewayName); }
public async Task Build_Must_Return_An_Invoice() { var invoice = await _builder.BuildAsync(); Assert.IsNotNull(invoice); }