コード例 #1
0
        public void Webhook_Should_Have_Applied_Properties_That_Are_Set(WebHookType type)
        {
            var webhook = new Webhook();

            webhook.SetTypeId(type);

            Assert.Equal(type, webhook.Type);
        }
コード例 #2
0
        public void Webhook_Should_Throw_Error_If_Webhook_ToFormContent_Called_Before_Setting_Atleast_One_Required_Url()
        {
            var webhook = new Webhook();

            webhook.SetTypeId(WebHookType.CLICKED);

            Assert.Throws <InvalidOperationException>(() => {
                webhook.ToFormContent();
            });
        }