internal void ProcessPayment(User user, PaymentDetails paymentDetails) { if (!_userValidationService.ValidateUser(user)) { throw new UserInvalidException(); } _paymentGatewayObject.ProcessPayment(paymentDetails); }
public bool LoginUser(string userName, string password) { ElapsedTime = new TimeSpan(0); _startTime = DateTime.Now; return(_validationService.ValidateUser(userName, password)); }