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); } }