public PaymentTransaction(
     string transactionId,
     Authorization authorization,
     Capture capture,
     ILoggingService loggingService)
 {
     _loggingService = loggingService;
     TransactionId = transactionId;
     Authorization = authorization;
     Capture = capture;
 }
        public void AuthorizeTransaction(string account, string currency, int amount)
        {
            Authorization = new Authorization
            {
                TransactionId = TransactionId,
                Account = account,
                Currency = currency,
                Amount = amount,
                CreateUser = Environment.UserName,
                CreateDate = DateTime.Now,
                ModifiedUser = Environment.UserName,
                ModifiedDate = DateTime.Now
            };

            _loggingService.Log(TransactionId, "Transaction authorized");
        }