public void DoesDownload()
 {
     var sut = new DownloaderService(WorkingDirectory);
     var fileInfo = sut.Download(
         "https://s3.amazonaws.com/inspirent/tv-recordings/15/11/06/2377fa19-29e4-4216-59f1-71359dc046d9.mp4", 1);
     Assert.IsTrue(fileInfo.Exists);
 }
Пример #2
0
 public DefaultController()
 {
     Directory.CreateDirectory(path);
     //These should be injected.
     _downloader = new DownloaderService(path);
     _segmenter = new SegmenterService(ChunkMs);
     _transcriber =  new TranscriptionService(ConcurrentDictionary);
 }