Dictionary<string, string> CreateExpectedConfigDictionary(Dictionary<string, string> config, string url, WebHookContentType contentType, string secret) { return new Dictionary<string, string> { { "url", url }, { "content_type", contentType.ToString().ToLowerInvariant() }, { "secret", secret }, { "insecure_ssl", "False" } }.Union(config).ToDictionary(k => k.Key, v => v.Value); }
Dictionary <string, string> CreateExpectedConfigDictionary(Dictionary <string, string> config, string url, WebHookContentType contentType, string secret) { return(new Dictionary <string, string> { { "url", url }, { "content_type", contentType.ToString().ToLowerInvariant() }, { "secret", secret }, { "insecure_ssl", "False" } }.Union(config).ToDictionary(k => k.Key, v => v.Value)); }