Example #1
0
 private void ValidateContest(Contest contest)
 {
     if (!contest.MatchesIsValid())
     {
         var errorMessage = "Two matches can't contain the same players";
         _plantDependencies.LogService.Output($"***CanĀ“t register contest!!***\r\nError message: {errorMessage}\r\n{contest.ToString()}");
         throw new InvalidOperationException(errorMessage);
     }
 }