Exemple #1
0
        /// <summary>
        /// Set the type id of the webhook.
        /// </summary>
        /// <param name="type">The type of webhook.</param>
        /// <returns>The instance of the webhook.</returns>
        public IWebhook SetTypeId(WebHookType type)
        {
            this.type = type;
            this.id   = EnumLookup.GetWebhookTypeName(type);

            return(this);
        }
Exemple #2
0
        public void Check_Webhook_Type_Name_Unsubscribed_Should_Return_String_unsubscribed()
        {
            var type = WebHookType.UNSUBSCRIBED;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("unsubscribed", name);
        }
Exemple #3
0
        public void Check_Webhook_Type_Name_Clicked_Should_Return_String_clicked()
        {
            var type = WebHookType.CLICKED;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("clicked", name);
        }
Exemple #4
0
        public void Check_Webhook_Type_Name_TemporaryFail_Should_Return_String_temporary_fail()
        {
            var type = WebHookType.TEMPORARY_FAIL;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("temporary_fail", name);
        }
Exemple #5
0
        public void Check_Webhook_Type_Name_PermanentFailed_Should_Return_String_permanent_failed()
        {
            var type = WebHookType.PERMANENT_FAIL;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("permanent_fail", name);
        }
Exemple #6
0
        public void Check_Webhook_Type_Name_Opened_Should_Return_String_opened()
        {
            var type = WebHookType.OPENED;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("opened", name);
        }
Exemple #7
0
        public void Check_Webhook_Type_Name_Delivered_Should_Return_String_delivered()
        {
            var type = WebHookType.DELIVERED;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("delivered", name);
        }
Exemple #8
0
        public void Check_Webhook_Type_Name_Complained_Should_Return_String_complained()
        {
            var type = WebHookType.COMPLAINED;

            var name = EnumLookup.GetWebhookTypeName(type);

            Assert.Equal("complained", name);
        }