private static void ValidatePlayerNameIsNotNullOrWhiteSpace(string playerName) { if (string.IsNullOrWhiteSpace(playerName)) { throw new ArgumentNullException(nameof(playerName)); } }