public GfyCatVideoUploaderTests()
 {
     DeleteTestFiles();
     _fakeGfyCatApi              = A.Fake <IGfyCatApi>();
     _fakeGfyCatFileDropApi      = A.Fake <IGfyCatFileDropApi>();
     _fakeGfyCatApiConfiguration = A.Fake <IGfyCatApiConfiguration>();
     A.CallTo(() => _fakeGfyCatApiConfiguration.GetUploadTimeoutInMs()).Returns(500);
     A.CallTo(() => _fakeGfyCatApiConfiguration.GetUploadStatusPollingPeriodInMs()).Returns(10);
     _gfyCatVideoUploader = new GfyCatVideoUploader(_fakeGfyCatApi, _fakeGfyCatFileDropApi, _fakeGfyCatApiConfiguration);
 }
 private async Task GetWaitForVideoUploadToCompleteTask(string gfyName)
 {
     await Task.Run(async() =>
     {
         var status = "";
         while (status != "complete")
         {
             Thread.Sleep(_gfyCatApiConfiguration.GetUploadStatusPollingPeriodInMs());
             status = (await GetGfyStatus(gfyName)).Task;
             Console.WriteLine($"Current status of video: {status}");
         }
         return;
     });
 }