private static IRepository CreateRepository(Uri uri, TestContextWriter testContextWriter)
 {
     return(new DataServiceClientRepository(uri, (context) => {
         context.SendingRequest += (sender, e) => {
             HttpWebRequest r = e.Request as HttpWebRequest;
             testContextWriter.WriteLine(r.RequestUri.ToString());
         };
     }));
 }