public void GetPath(string fileName, string expected) { VideoHeader header = new VideoHeader(new Host("Camera", IPAddress.Any), fileName); var result = header.GetPath(@"c:\out"); Assert.AreEqual(expected, result); }
public bool IsDownloaded(VideoHeader header) { Guard.NotNull(() => header, header); var fileDestination = header.GetPath(destination); return(File.Exists(fileDestination)); }
public string ResolveName(VideoHeader header) { var fileDestination = header.GetPath(destination); return(Path.ChangeExtension(fileDestination, "png")); }
public string ResolveName(VideoHeader header) { Guard.NotNull(() => header, header); return(header.GetPath(destination)); }