/// <summary> /// Initializes a new instance of the <see cref="GeoCoder"/> class. /// </summary> public GeoCoder() { dbConnection = InitialiseDbConnection(); matchProvider = new MatchProvider(dbConnection); columnsMappingProvider = new ColumnsMappingProvider(dbConnection); matchedNames = new MatchedNames(matchProvider); }
/// <summary> /// Initializes a new instance of the <see cref="GeoCoder"/> class. /// Use this constructor for unit testing. /// </summary> /// <param name="dbConnection">The database connection.</param> internal GeoCoder(DbConnection dbConnection) { this.dbConnection = dbConnection; matchProvider = new MatchProvider(dbConnection); columnsMappingProvider = new ColumnsMappingProvider(dbConnection); matchedNames = new MatchedNames(matchProvider); }