public void TestPaymentFactoryForPaymentStatusOfCardPayment() { PaymentFactory paymentFactory = new PaymentFactory(); IPayment payment = paymentFactory.GetPaymentMethod("card"); payment.SendDetails("ABC", "XY345"); Assert.Equal(true, payment.DoPayment()); }
internal bool MakePayment() { if (_payment.DoPayment()) { return(_payment.PaymentStatus()); } return(false); }
public void DoPayment() { _payment.DoPayment(); }