38 references to ValidateRouteParameter
Microsoft.Extensions.Telemetry.Tests (38)
Http\HttpParserTests.cs (38)
86ValidateRouteParameter(httpRouteParameters[0], "routeId", $"{redactedPrefix}routeId123", isRedacted);
90ValidateRouteParameter(httpRouteParameters[1], "chatId", TelemetryConstants.Redacted, true);
95ValidateRouteParameter(httpRouteParameters[1], "chatId", "chatId123", false);
105ValidateRouteParameter(httpRouteParameters[0], "routeId", $"{redactedPrefix}routeId123", isRedacted);
109ValidateRouteParameter(httpRouteParameters[1], "chatId", TelemetryConstants.Redacted, true);
114ValidateRouteParameter(httpRouteParameters[1], "chatId", "chatId123", false);
169ValidateRouteParameter(httpRouteParameters[0], "routeId", TelemetryConstants.Redacted, true);
174ValidateRouteParameter(httpRouteParameters[0], "routeId", "routeId123", false);
177ValidateRouteParameter(httpRouteParameters[1], "chatId", $"{redactedPrefix}chatId123", isRedacted);
187ValidateRouteParameter(httpRouteParameters[0], "routeId", TelemetryConstants.Redacted, true);
192ValidateRouteParameter(httpRouteParameters[0], "routeId", "routeId123", false);
195ValidateRouteParameter(httpRouteParameters[1], "chatId", $"{redactedPrefix}chatId123", isRedacted);
205ValidateRouteParameter(httpRouteParameters[0], "routeId", $"{redactedPrefix}routeId123", isRedacted);
209ValidateRouteParameter(httpRouteParameters[1], "chatId", TelemetryConstants.Redacted, true);
214ValidateRouteParameter(httpRouteParameters[1], "chatId", "chatId123", false);
240ValidateRouteParameter(httpRouteParameters[0], "routeId", TelemetryConstants.Redacted, true);
245ValidateRouteParameter(httpRouteParameters[0], "routeId", "routeId123", false);
248ValidateRouteParameter(httpRouteParameters[1], "chatId", $"{redactedPrefix}chatId123", isRedacted);
257ValidateRouteParameter(httpRouteParameters[0], "routeId", "routeId123", false);
258ValidateRouteParameter(httpRouteParameters[1], "chatId", $"{redactedPrefix}chatId123", isRedacted);
268ValidateRouteParameter(httpRouteParameters[0], "routeId", "routeId123", false);
269ValidateRouteParameter(httpRouteParameters[1], "chatId", "chatId123", false);
294ValidateRouteParameter(httpRouteParameters[0], "controller", "users", false);
295ValidateRouteParameter(httpRouteParameters[1], "action", "list", false);
296ValidateRouteParameter(httpRouteParameters[2], "filter", $"{redactedPrefix}top10", isRedacted);
306ValidateRouteParameter(httpRouteParameters[0], "controller", "users", false);
307ValidateRouteParameter(httpRouteParameters[1], "action", "index", false);
308ValidateRouteParameter(httpRouteParameters[2], "filter", "all", false);
319ValidateRouteParameter(httpRouteParameters[0], "controller", "home", false);
320ValidateRouteParameter(httpRouteParameters[1], "action", "index", false);
321ValidateRouteParameter(httpRouteParameters[2], "filter", "all", false);
334ValidateRouteParameter(httpRouteParameters[0], "controller", $"{redactedPrefix}users", isRedacted);
335ValidateRouteParameter(httpRouteParameters[1], "action", "index", false);
336ValidateRouteParameter(httpRouteParameters[2], "filter", "all", false);
365ValidateRouteParameter(httpRouteParameters[0], "routeId", $"{redactedPrefix}routeId123", isRedacted);
366ValidateRouteParameter(httpRouteParameters[1], "chatId", $"{redactedPrefix}chatId123", isRedacted);
376ValidateRouteParameter(httpRouteParameters[0], "routeId", $"{redactedPrefix}routeId123", isRedacted);
377ValidateRouteParameter(httpRouteParameters[1], "chatId", "", false);