Exemplo n.º 1
0
        public void Should_set_webHook_fail_because_url_is_not_secure()
        {
            BaleClient client     = new BaleClient(Token);
            string     sampleHook = "http://myhook.com";

            Response <bool> response = client.SetWebhook(sampleHook);

            response.Ok.Should().BeFalse();
            response.Result.Should().BeFalse();
            response.Description.Should().NotBeNull();
        }
Exemplo n.º 2
0
        public void Should_set_webHook_successfully()
        {
            BaleClient client     = new BaleClient(Token);
            string     sampleHook = "https://myhook.com";

            Response <bool> response = client.SetWebhook(sampleHook);

            response.Ok.Should().BeTrue();
            response.Result.Should().BeTrue();
            response.Description.Should().BeNull();
        }