public void TestExcludeInvoicesAndAllInstallmentsAllCountries() { var payment = new FakeHostedPayment(null); var exclude = new ExcludePayments(); List <string> excludedPaymentMethod = payment.GetExcludedPaymentMethod(); excludedPaymentMethod.AddRange(exclude.ExcludeInvoicesAndPaymentPlan()); var expectedValues = new List <string> { InvoiceType.INVOICESE.Value, InvoiceType.INVOICEEUSE.Value, PaymentPlanType.PAYMENTPLANSE.Value, PaymentPlanType.PAYMENTPLANEUSE.Value, InvoiceType.INVOICEDE.Value, PaymentPlanType.PAYMENTPLANDE.Value, InvoiceType.INVOICEDK.Value, PaymentPlanType.PAYMENTPLANDK.Value, InvoiceType.INVOICEFI.Value, PaymentPlanType.PAYMENTPLANFI.Value, InvoiceType.INVOICENL.Value, PaymentPlanType.PAYMENTPLANNL.Value, InvoiceType.INVOICENO.Value, PaymentPlanType.PAYMENTPLANNO.Value }; Assert.That(excludedPaymentMethod, Is.EqualTo(expectedValues)); }
public void TestExcludeInvoicesAndAllInstallmentsAllCountries() { var payment = new FakeHostedPayment(null); var exclude = new ExcludePayments(); List<string> excludedPaymentMethod = payment.GetExcludedPaymentMethod(); excludedPaymentMethod.AddRange(exclude.ExcludeInvoicesAndPaymentPlan()); var expectedValues = new List<string> { InvoiceType.INVOICESE.Value, InvoiceType.INVOICEEUSE.Value, PaymentPlanType.PAYMENTPLANSE.Value, PaymentPlanType.PAYMENTPLANEUSE.Value, InvoiceType.INVOICEDE.Value, PaymentPlanType.PAYMENTPLANDE.Value, InvoiceType.INVOICEDK.Value, PaymentPlanType.PAYMENTPLANDK.Value, InvoiceType.INVOICEFI.Value, PaymentPlanType.PAYMENTPLANFI.Value, InvoiceType.INVOICENL.Value, PaymentPlanType.PAYMENTPLANNL.Value, InvoiceType.INVOICENO.Value, PaymentPlanType.PAYMENTPLANNO.Value }; Assert.That(excludedPaymentMethod, Is.EqualTo(expectedValues)); }