示例#1
0
        public async Task Send_With_Sound_Got_Ok()
        {
            var client = new PushoverClient(ApiKey);

            var message  = client.NewMessageWithSound("Hello world", Sound.CashRegister);
            var response = await client.SendAsync(message, UserKey);

            Assert.Equal(response.StatusCode, HttpStatusCode.OK);
        }
示例#2
0
        public async Task Send_With_Sound_Got_Ok()
        {
            var client = new PushoverClient(string.Empty);

            PushoverClient.HttpHandler = new MockHandler();

            var message  = client.NewMessageWithSound("Hello world", Sound.CashRegister);
            var response = await client.SendAsync(message, string.Empty);

            Assert.Equal(response.StatusCode, HttpStatusCode.OK);
        }