コード例 #1
0
ファイル: StateBankAccount.cs プロジェクト: BenSeawalker/Labs
        public StateBankAccount()
        {
            confirmingIdentityState = new ConfirmingIdentityState(this);
            activeState             = new ActiveState(this);
            frozenState             = new FrozenState(this);
            closingState            = new ClosingState(this);
            closedState             = new ClosedState(this);

            state   = confirmingIdentityState;
            balance = 0.0;
        }
コード例 #2
0
        public StateBankAccount()
        {
            _confirmingIdentity = new ConfirmingIdentity(this);
            _accountActive = new AccountActive(this);
            _frozen = new Frozen(this);
            _closing = new Closing(this);
            _closed = new Closed(this);

            Balance = 0.0;
            _state = _confirmingIdentity;
        }