private GtfsFeed GetParsedFeed(string feedPath) { GtfsFeed feed = new GtfsFeed(); GtfsFeedParserVisitor parseVisitor = new GtfsFeedParserVisitor(feedPath); feed.Accept(parseVisitor); return(parseVisitor.Feed); }
private GtfsFeed GetFeed(GtfsFeedParserVisitor parser) { GtfsFeed feed = new GtfsFeed(); feed.Accept(parser); return(parser.Feed); }
/// <summary> /// Facade for parsing GTFS feed /// </summary> public GtfsFeed Parse(string feedPath) { GtfsFeedParserVisitor parser = new GtfsFeedParserVisitor(feedPath); GtfsFeed feed = new GtfsFeed(); feed.Accept(parser); return parser.Feed; }
/// <summary> /// Facade for parsing GTFS feed /// </summary> public GtfsFeed Parse(string feedPath) { GtfsFeedParserVisitor parser = new GtfsFeedParserVisitor(feedPath); GtfsFeed feed = new GtfsFeed(); feed.Accept(parser); return(parser.Feed); }
public GtfsFeedVistorTest(ITestOutputHelper output) { _output = output; _sut = new GtfsFeedParserVisitor(FEED_PATH); }