public void CopyOutboundAllFilesWithoutLocalBackup() { //Arrange var channelSettings = new ToSettings() { Path = _toFolder.FullName, Type = ConfigChannelType.Local }; _testData.CopyContentTo(_workingDirectory); LocalChannel channel = new LocalChannel(_workingDirectory, channelSettings); //Act var result = channel.Copy(); //Assert Assert.AreEqual(result.Count(), _testData.GetFiles().Length); Assert.IsTrue(result.Any(d => d.Name == "EE_FEETRA_TPY_000451-0_18.xml")); Assert.IsTrue(result.Any(d => d.Name == "EE_FEETRA_TPY_000452-0_18.xml")); Assert.IsTrue(result.Any(d => d.Name == "EE_FEETRA_TPY_000454-0_18.XML")); Assert.IsTrue(result.Any(d => d.Name == "GG_TR_529900G3SW56SHYNPR95_01_20180316_0014_01.zip")); var _toDataFiles = _toFolder.GetFiles(); Assert.AreEqual(_testData.GetFiles().Length, _toFolder.GetFiles().Length); Assert.IsTrue(_toDataFiles.Any(d => d.Name == "EE_FEETRA_TPY_000451-0_18.xml")); Assert.IsTrue(_toDataFiles.Any(d => d.Name == "EE_FEETRA_TPY_000452-0_18.xml")); Assert.IsTrue(_toDataFiles.Any(d => d.Name == "EE_FEETRA_TPY_000454-0_18.XML")); Assert.IsTrue(_toDataFiles.Any(d => d.Name == "GG_TR_529900G3SW56SHYNPR95_01_20180316_0014_01.zip")); }
public To(ToSettings settings) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); }