public virtual void Handle(GameWonEvent @event) { if(!_gameDetails.ContainsKey(@event.GameId)) return; var gameDetails = _gameDetails[@event.GameId]; gameDetails.WinnerId = @event.PlayerId; }
public void Handle(GameWonEvent @event) { state = GameState.Finished; winner = @event.PlayerId; }