public async Task ValidCasesAsync(WebHook validWebHook)
        {
            var schema = new OpenApiSchema
            {
                Properties = new Dictionary <string, OpenApiSchema>
                {
                    ["param1"] = new OpenApiSchema {
                        Type = "integer"
                    },
                    ["param2"] = new OpenApiSchema {
                        Type = "string"
                    },
                }
            };
            var triggersById = new Dictionary <string, WebHookTrigger>
            {
                ["valid"] = new WebHookTrigger {
                    Id = "valid", Schema = schema
                },
            };

            var triggers = new Mock <IWebHookTriggerProvider>();

            triggers.Setup(s => s.GetAvailableTriggers()).Returns(triggersById);
            var logger  = new Mock <ILogger <DefaultWebHookValidator> >();
            var client  = HttpClientMocker.ReturnQueryParam("echo");
            var service = new DefaultWebHookValidator(triggers.Object, logger.Object, client);

            await service.ValidateAsync(validWebHook);

            Assert.NotEqual(default, validWebHook.Id);
        public async Task ValidCasesAsync(WebHook validWebHook)
        {
            var triggersById = new Dictionary <string, WebHookTrigger>
            {
                ["valid"] = new WebHookTrigger("valid"),
            };

            var triggers = new Mock <IWebHookTriggerProvider>();

            triggers.Setup(s => s.GetAvailableTriggers()).Returns(triggersById);
            var logger  = new Mock <ILogger <DefaultWebHookValidator> >();
            var client  = HttpClientMocker.ReturnQueryParam("echo");
            var service = new DefaultWebHookValidator(triggers.Object, logger.Object, client);

            await service.ValidateAsync(validWebHook);

            Assert.NotEqual(default, validWebHook.Id);