public static FileDataSource <TParserContext> CreateFileDataSource <TParserContext>( string filename, bool hasFieldsEnclosedInQuotes, string delimiter, string commentedOutIndicator) where TParserContext : IParserContext { var testDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var config = new FileDataSourceConfig { Delimiter = delimiter, HasFieldsEnclosedInQuotes = hasFieldsEnclosedInQuotes, Path = Path.Combine(testDirectory, "TestFiles", filename), CommentedOutIndicator = commentedOutIndicator }; return(new FileDataSource <TParserContext>(config)); }
public WordsFileRepository(FileDataSourceConfig config) : base(config) { }