public ReadOnlyBlockadeState(BlockadeState state) { this._state = state; this._board = new Lazy <Grid <Cell> >(() => state.GetBoard()); this._boardCalculator = new Lazy <BoardCalculator>(() => state.GetBoardCalculator()); }
public BlockadeState CreateFromConfiguration(BlockadeConfiguration configuration) { return(BlockadeState.CreateFromConfiguration(configuration, this._boardCalculatorFactory)); }