Esempio n. 1
1
 /// <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);
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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);
 }