Beispiel #1
0
 public void SetUp()
 {
     header          = new VideoHeader(new Host("Camera", IPAddress.Any), "test.mov");
     stream          = new Mock <Stream>();
     mockDestination = new Mock <IDestination>();
     mockPostAction  = new Mock <IPostAction>();
     instance        = CreateChainedPostActionDestination();
 }
Beispiel #2
0
        private IDestination ConstructDestination()
        {
            IDestination destination = config.Output.Images ? (IDestination) new PictureFileDestination(config.Output.Out) : new FileDestination(config.Output.Out);

            if (config.Output.Compress)
            {
                destination = ChainedPriorActionDestination.CreateCompressed(destination);
            }

            if (config.Action != null)
            {
                destination = ChainedPostActionDestination.CreateAction(destination, config.Action);
            }

            return(destination);
        }