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