Exemple #1
0
        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));
        }
Exemple #3
0
        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));
 }