public DiskIntegrationTests()
        {
            var serviceProvider = ConfigureDi.BuildDi();

            keyComposer = serviceProvider.GetRequiredService <KeyComposer>();
            fakeLocationCacheFactory = serviceProvider.GetRequiredService <FakeLocationCacheFactory>();
            locationCache            = fakeLocationCacheFactory.Create();
        }
Example #2
0
 public KeyComposerTests()
 {
     keyComposer = new KeyComposer();
 }
Example #3
0
 public KeyComposerTests()
 {
     keyComposer = ConfigureDi.Services.GetRequiredService <KeyComposer>();
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeocodeManager"/> class.
 /// </summary>
 /// <param name="geocoderSelector">An instance of <see cref="IGeocoderSelector"/> that is responsible for returning the next available geocoder.</param>
 /// <param name="keyComposer">An instance of <see cref="KeyComposer"/> used to construct a unique code per address looked up.</param>
 public GeocodeManager(IGeocoderSelector geocoderSelector, KeyComposer keyComposer)
 {
     this.geocoderSelector = geocoderSelector;
     this.keyComposer      = keyComposer;
 }
 public GeocodeManager(IGeocoderSelector geocoderSelector, KeyComposer keyComposer, ILogger <GeocodeManager> logger)
 {
     this.geocoderSelector = geocoderSelector;
     this.keyComposer      = keyComposer;
     this.logger           = logger;
 }