public void TestFilePathVariableInFailurePath()
        {
            var helper = new FileProcessorHelper(new FileProcessorEndpoint {
                DropPath = @"c:\a", FailurePath = @"%filepath%\b", ScavengeInterval = new TimeSpan(0, 0, 2), SuccessPath = @"C:\d"
            }, new FileHandler(), new NullPostProcessor());
            var result = helper.GenerateErrorFileName(@"c:\a\e\f\g.txt");

            Assert.IsTrue(result.StartsWith(@"c:\a\e\f\b\g.txt"));
        }
        public void TestErrorFileNameRetainsDirectoryStructure()
        {
            var helper = new FileProcessorHelper(new FileProcessorEndpoint {
                DropPath = @"c:\a", FailurePath = @"c:\b", ScavengeInterval = new TimeSpan(0, 0, 2), SuccessPath = @"c:\d"
            }, new FileHandler(), new NullPostProcessor());
            var result = helper.GenerateErrorFileName(@"c:\a\e\f\g.txt");

            Assert.IsTrue(result.StartsWith(@"c:\b\e\f\g.txt"));
        }
 public void TestFilePathVariableInFailurePath()
 {
     var helper = new FileProcessorHelper(new FileProcessorEndpoint { DropPath = @"c:\a", FailurePath = @"%filepath%\b", ScavengeInterval = new TimeSpan(0, 0, 2), SuccessPath = @"C:\d" }, new FileHandler(), new NullPostProcessor());
     var result = helper.GenerateErrorFileName(@"c:\a\e\f\g.txt");
     Assert.IsTrue(result.StartsWith(@"c:\a\e\f\b\g.txt"));
 }
 public void TestErrorFileNameRetainsDirectoryStructure()
 {
     var helper = new FileProcessorHelper(new FileProcessorEndpoint { DropPath = @"c:\a", FailurePath = @"c:\b", ScavengeInterval = new TimeSpan(0, 0, 2), SuccessPath = @"c:\d" }, new FileHandler(), new NullPostProcessor());
     var result = helper.GenerateErrorFileName(@"c:\a\e\f\g.txt");
     Assert.IsTrue(result.StartsWith(@"c:\b\e\f\g.txt"));
 }