public DiskIntegrationTests() { var serviceProvider = ConfigureDi.BuildDi(); keyComposer = serviceProvider.GetRequiredService <KeyComposer>(); fakeLocationCacheFactory = serviceProvider.GetRequiredService <FakeLocationCacheFactory>(); locationCache = fakeLocationCacheFactory.Create(); }
public KeyComposerTests() { keyComposer = new KeyComposer(); }
public KeyComposerTests() { keyComposer = ConfigureDi.Services.GetRequiredService <KeyComposer>(); }
/// <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; }