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