public ExtractPersister(string extractFilePath, Action <T> insertionCallback = null, ILog log = null, string customTempDirectoryPath = null, string customLogDirectoryPath = null) { extract = new HyperExtract <T>(extractFilePath, customTempDirectoryPath, customLogDirectoryPath); this.insertionCallback = insertionCallback ?? (_ => { }); Log = log ?? LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); }
public void CreateExtract(string filename) { var extractPath = InitializeTestFile(filename); using (var extract = new HyperExtract <Widget>(extractPath)) { var widget = new Widget { String = "foo", NullableBool = true }; var insertionResult = extract.Insert(widget); insertionResult.HasValue.Should().BeTrue("Inserting an item should not return None"); } }