Exemplo n.º 1
0
 private void EnsureAllowedToShowStandings(Moderator moderator)
 {
     if (!moderator.Equals(_game.Moderator))
     {
         throw new ArgumentException(
                   $"Only **{_game.Moderator.Name}** is allowed to show the current standings.");
     }
 }
Exemplo n.º 2
0
 private void EnsureAllowedToAddScore(Moderator moderator)
 {
     if (!moderator.Equals(_game.Moderator))
     {
         throw new ArgumentException(
                   $"Only **{_game.Moderator.Name}** is allowed to add points in the current game.");
     }
 }