示例#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;
 }