Exemplo n.º 1
0
        public async Task DeleteReminderGeneratesExpectedCall()
        {
            var id        = "abcdef";
            var netClient = new HttpClient(new ActionMessageHandler(req =>
            {
                Assert.Equal(HttpMethod.Delete, req.Method);
                Assert.Equal("/v1/alerts/reminders/" + id, req.RequestUri.PathAndQuery);

                return(new HttpResponseMessage(HttpStatusCode.OK));
            }));

            var client = new RemindersClient(netClient);
            await client.Delete(id);
        }