public void ProcessPayment_ShouldBeProcessed()
            {
                paymentRequest.ProcessPayment();

                Assert.Equal(PaymentStatus.Processed, paymentRequest.Status);
                Assert.Equal("Processed", paymentRequest.Reason);
            }
Beispiel #2
0
 public override void ChangePaymentStatus(PaymentRequest payment, string reason)
 {
     payment.ProcessPayment();
 }
 public void ProcessPayment_ShouldThrow()
 {
     Assert.Throws <PaymentDomainException>(() => paymentRequest.ProcessPayment());
 }