public async Task DismissGeneratesCorrectRequest()
        {
            NotificationClient client = null;

            client = GetClient(req =>
            {
                Assert.Equal(HttpMethod.Delete, req.Method);
                Assert.Equal(req.RequestUri.ToString(), client.NotificationUri("xxx", "dismiss").ToString());
                Assert.Equal("xxx", req.Headers.Authorization.Parameter);
                return(new HttpResponseMessage(HttpStatusCode.Accepted));
            });
            await client.Dismiss("xxx");
        }
        public async Task ListArchivedGeneratesCorrectRequest()
        {
            NotificationClient client = null;

            client = GetClient(req =>
            {
                Assert.Equal(HttpMethod.Get, req.Method);
                Assert.Equal(req.RequestUri.ToString(), client.NotificationUri(string.Empty, "archived").ToString());
                Assert.Equal("xxx", req.Headers.Authorization.Parameter);
                return(new HttpResponseMessage(HttpStatusCode.OK)
                {
                    Content = new StringContent(Utility.GetExampleJson("NotificationList.json"))
                });
            });
            await client.List(NotificationState.Archived);
        }
        public async Task UpdateGeneratesCorrectRequest()
        {
            NotificationClient client = null;

            client = GetClient(req =>
            {
                Assert.Equal(HttpMethod.Put, req.Method);
                Assert.Equal(req.RequestUri.ToString(), client.NotificationUri("notifyid").ToString());
                Assert.Equal("xxx", req.Headers.Authorization.Parameter);
                return(new HttpResponseMessage(HttpStatusCode.OK)
                {
                    Content = new StringContent(JObject.FromObject(new NotificationInfo()).ToString())
                });
            });
            await client.Update("notifyid", new DisplayInfo(), new SpokenInfo(), "ref", DateTime.UtcNow);
        }