public Acknowledgment(string fileName, IFileSystem fileSystem, INativeFormat nativeFormat) : base(fileName, fileSystem) { this.fileName = fileName; this.fileSystem = fileSystem; this.nativeFormat = nativeFormat; }
public AcknowledgmentBuilder() { applicationSettings = Mock.Of <IApplicationSettings>(); fileName = "TestFile"; logger = Mock.Of <ILogger>(); file = Mock.Of <IFileSystem>(); nativeFormat = Mock.Of <INativeFormat>(); }
public ForeignFileFactory(IFileSystem fileSystem, IApplicationSettings applicationSettings, ILogger logger, INativeFormat nativeFormat) { this.fileSystem = fileSystem; this.logger = logger; this.nativeFormat = nativeFormat; //Initialize name patterns from application settings. shipmentNamePattern = applicationSettings.ShipmentNamePattern; acknowledgementNamePattern = applicationSettings.AcknowledgmentNamePattern; electronicDataNamePattern = applicationSettings.ElectronicDataNamePattern; invoiceNamePattern = applicationSettings.InvoiceNamePattern; }