public TransactionService(IAccount sourceAccount) { ValidationHelper.NotNull(sourceAccount, "sourceAccount"); this.SourceAccount = sourceAccount; this.Transactions = new CoreList <ITransaction>(); this.Transactions.OnAdd += Transactions_OnAdd; }
public InterestBearingAccount(decimal initialDeposit, InterestCounpoundType compoundType = InterestCounpoundType.Daily) : base(initialDeposit) { MonetaryCycles = new CoreList <MonetaryCycle>(); this._CreateCycle(DateProvider.Now().Date); RateLimits = new List <IRateLimit>(); this.CompoundType = compoundType; this.RegisterRateProviders(); this.Transactions_OnAdd(this.Transactions[0], null); }
public Customer(string socialSecurityNumber, string name) { ValidationHelper.StringNullEmpty(name, "name"); ValidationHelper.StringNullEmpty(socialSecurityNumber, "socialSecurityNumber"); string _socialSecurityNumber = ValidationHelper.SocialSecurityNumber(socialSecurityNumber); this.SocialSecurityNumber = _socialSecurityNumber; this.Name = name; this.InterestAccounts = new CoreList <IInterestAccount>(); }
public TransactionalAccountBase(decimal initialDeposit) : base(initialDeposit) { this.Transactions = new CoreList <ITransaction>(); this.Deposit(initialDeposit); this.Transactions.OnAdd += Transactions_OnAdd; }