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); }
public CorporateInvestmentAccount(Guid ownerId) : base(ownerId) { IDepositBehavior depositBehavior = new StandardDeposit(); IWithdrawBehavior withdrawBehavior = new StandardWithdraw(); ITransferBehavior transferBehavior = new StandardTransferBehavior(); SetDepositBehavior(depositBehavior); SetWithdrawBehavior(withdrawBehavior); SetTransferBehavior(transferBehavior); }
public StandardCheckingAccount(Guid ownerId) : base(ownerId) { IDepositBehavior depositBehavior = new StandardDeposit(); IWithdrawBehavior withdrawBehavior = new StandardWithdraw(); ITransferBehavior transferBehavior = new StandardTransferBehavior(); SetDepositBehavior(depositBehavior); SetWithdrawBehavior(withdrawBehavior); SetTransferBehavior(transferBehavior); }