Beispiel #1
0
 public BankingAccount(string accountName, int snapshotFrequency)
 {
     AccountNumber      = MockIDGenerator.Generate();
     _accountName       = accountName;
     _snapshots         = new List <BalanceSnapshot>();
     _snapshotFrequency = snapshotFrequency;
     AccountRecords     = new List <FinancialTransaction>();
 }
Beispiel #2
0
        public FinancialTransaction(decimal amount, string description, DateTime trxDate, FinancialTransactionType recordType, bool post = true)
        {
            TransactionID = MockIDGenerator.Generate();
            Amount        = amount;
            Description   = description;

            var now = DateTime.UtcNow;

            TransactionDate = now;
            PostedDate      = post ? now : (DateTime?)null;
            RecordType      = recordType;
        }