/// <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); }
public void Check_Webhook_Type_Name_Unsubscribed_Should_Return_String_unsubscribed() { var type = WebHookType.UNSUBSCRIBED; var name = EnumLookup.GetWebhookTypeName(type); Assert.Equal("unsubscribed", name); }
public void Check_Webhook_Type_Name_Clicked_Should_Return_String_clicked() { var type = WebHookType.CLICKED; var name = EnumLookup.GetWebhookTypeName(type); Assert.Equal("clicked", name); }
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); }
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); }
public void Check_Webhook_Type_Name_Opened_Should_Return_String_opened() { var type = WebHookType.OPENED; var name = EnumLookup.GetWebhookTypeName(type); Assert.Equal("opened", name); }
public void Check_Webhook_Type_Name_Delivered_Should_Return_String_delivered() { var type = WebHookType.DELIVERED; var name = EnumLookup.GetWebhookTypeName(type); Assert.Equal("delivered", name); }
public void Check_Webhook_Type_Name_Complained_Should_Return_String_complained() { var type = WebHookType.COMPLAINED; var name = EnumLookup.GetWebhookTypeName(type); Assert.Equal("complained", name); }