/// <summary> /// LoanAccount constructor that take six parametars /// </summary> /// <param name="currency">currency</param> /// <param name="depositPeriod">time period</param> /// <param name="interestRate">interest rate</param> /// <param name="startDate">starting date</param> /// <param name="endDate">ending date</param> /// <param name="transactionAccount">transaction account</param> public LoanAccount(string currency, TimePeriod depositPeriod, InterestRate interestRate, DateTime startDate, DateTime endDate, TransactionAccount transactionAccount) : base(currency, depositPeriod, interestRate, startDate, endDate, transactionAccount) { CurrencyAmount tmp = new CurrencyAmount(); tmp.Amount = 0; tmp.Currency = currency; this.LoanBalance = tmp; }
/// <summary> /// DepositAccount constructor /// </summary> /// <param name="currency">currency of account</param> /// <param name="depositPeriod">deposit period</param> /// <param name="interestRate">interest rate</param> /// <param name="startDate">start date</param> /// <param name="endDate">end date</param> /// <param name="transactionAccount">tansaction account</param> public DepositAccount(string currency, TimePeriod depositPeriod, InterestRate interestRate, DateTime startDate, DateTime endDate, TransactionAccount transactionAccount) : base(currency) { this.Period = depositPeriod; this.Interest = interestRate; this.StartDate = startDate; this.EndDate = endDate; this.TransactionAccount = transactionAccount; }