public void BeChallenged(Player challenger, Round round) { GuardAgainstDisallowedGames(challenger); // Notify domain of event. ApplyChange(new PlayerWasChallenged(Id, Username, _externalId, _authToken, round.Id, challenger.Username, challenger.Id)); }
public void IssueChallenge(Player opponent, Round round) { GuardAgainstDisallowedGames(opponent); opponent.BeChallenged(this, round); ApplyChange(new PlayerChallenged(Id, opponent.Id, round.Id)); }