예제 #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);
        }
예제 #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);
        }
예제 #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);
        }