Beispiel #1
0
 public void ProcessPayment(User user, PaymentDetails paymentDetails)
 {
     if (_userValidator.IsValid(user))
     {
         _paymentGateway.Pay(paymentDetails);
     }
 }
        private void SendPayment(SendPaymentMessage message)
        {
            Console.WriteLine($"Sending payment for {message.FirstName} {message.LastName}");
            _paymentGateway.Pay(message.AccountNumber, message.AmountDecimal);

            Sender.Tell(new PaymentSentMessage(message.AccountNumber));
        }
        private void SendPayment(SendPaymentMessage message)
        {
            Console.WriteLine("Sending payment for {0} {1}", message.FirstName, message.LastName);

            _paymentGateway.Pay(message.AccountNumber, message.Amount);

            Sender.Tell(new PaymentSentMessage(message.AccountNumber));
        }
Beispiel #4
0
 private void SendPayment(SendPaymentMessage message)
 {
     _paymentGateway.Pay(message.AccountNumber, message.Amount).PipeTo(Self, Sender);
 }
Beispiel #5
0
 public void MakePayment(double amount)
 {
     _paymentGateway.Pay(amount);
 }