Beispiel #1
0
        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));
        }
Beispiel #2
0
        public void IssueChallenge(Player opponent, Round round)
        {
            GuardAgainstDisallowedGames(opponent);

            opponent.BeChallenged(this, round);

            ApplyChange(new PlayerChallenged(Id, opponent.Id, round.Id));
        }