Пример #1
0
 public TransactionService(IAccount sourceAccount)
 {
     ValidationHelper.NotNull(sourceAccount, "sourceAccount");
     this.SourceAccount       = sourceAccount;
     this.Transactions        = new CoreList <ITransaction>();
     this.Transactions.OnAdd += Transactions_OnAdd;
 }
Пример #2
0
        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);
        }
Пример #3
0
        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;
 }