private ActiveDepositResultState(BankAccountState bankAccountState) { _bankAccountState = bankAccountState; }
private ActiveWithdrawResultState(BankAccountState bankAccountState) { _bankAccountState = bankAccountState; }
protected override Func <BankAccountGrainState, BankAccountMessage, Task <BankAccountGrainState> > GetProcessorFunc (BankAccountState state) => state.Match <Func <BankAccountGrainState, BankAccountMessage, Task <BankAccountGrainState> > >( () => ZeroBalanceStateProcessor, () => ActiveStateProcessor, () => OverdrawnStateProcessor, () => ClosedStateProcessor);