Exemple #1
0
        public IndividualInvestmentAccount(Guid ownerId) : base(ownerId)
        {
            IDepositBehavior  depositBehavior  = new StandardDeposit();
            IWithdrawBehavior withdrawBehavior = new WithdrawLimitBehavior(1000);
            ITransferBehavior transferBehavior = new StandardTransferBehavior();

            SetDepositBehavior(depositBehavior);
            SetWithdrawBehavior(withdrawBehavior);
            SetTransferBehavior(transferBehavior);
        }
Exemple #2
0
        public CorporateInvestmentAccount(Guid ownerId) : base(ownerId)
        {
            IDepositBehavior  depositBehavior  = new StandardDeposit();
            IWithdrawBehavior withdrawBehavior = new StandardWithdraw();
            ITransferBehavior transferBehavior = new StandardTransferBehavior();

            SetDepositBehavior(depositBehavior);
            SetWithdrawBehavior(withdrawBehavior);
            SetTransferBehavior(transferBehavior);
        }
Exemple #3
0
        public StandardCheckingAccount(Guid ownerId) : base(ownerId)
        {
            IDepositBehavior  depositBehavior  = new StandardDeposit();
            IWithdrawBehavior withdrawBehavior = new StandardWithdraw();
            ITransferBehavior transferBehavior = new StandardTransferBehavior();

            SetDepositBehavior(depositBehavior);
            SetWithdrawBehavior(withdrawBehavior);
            SetTransferBehavior(transferBehavior);
        }