Beispiel #1
0
 private CallDogImagesApi(RestClient client, string dumpDir) :
     base(client)
 {
     RequestDumper = new RequestDumper(
         "Dog Images API Request Dumper",
         Path.Combine(dumpDir, RequestToken),
         RequestToken);
     DownloadDumper = new ByteDumper(
         "Dog Images API Download Dumper",
         Path.Combine(dumpDir, DownloadToken),
         DownloadToken);
 }
 /// <summary>
 /// Sets the Ability to dump requests/responses to the given path.
 /// </summary>
 /// <param name="dumpDir">The dump directory path.</param>
 /// <param name="fileToken">The file token.</param>
 /// <returns></returns>
 public CallRestApi DumpingDownloadsTo(string dumpDir, string fileToken = "Download")
 {
     DownloadDumper = new ByteDumper("REST Download Dumper", dumpDir, fileToken);
     return(this);
 }
        public void SetUp()
        {
            string dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            Dumper = new ByteDumper("Test Dumper", dir, "Byte");
        }