protected InfoCarrierBackendTestStore( string name, bool shared, SharedTestStoreProperties testStoreProperties) : base(name, shared) { this.testStoreProperties = testStoreProperties; this.ServiceProvider = this.AddServices(new ServiceCollection()) .AddInfoCarrierServer() .AddSingleton <IInfoCarrierValueMapper, InfoCarrierNetTopologySuiteValueMapper>() .AddSingleton(TestModelSource.GetFactory(this.testStoreProperties.OnModelCreating)) .AddDbContext( this.testStoreProperties.ContextType, (s, b) => this.AddProviderOptions(b), ServiceLifetime.Transient, ServiceLifetime.Singleton) .BuildServiceProvider(); this.infoCarrierServer = this.ServiceProvider.GetRequiredService <IInfoCarrierServer>(); }
public SqlServerTestStore(string name, bool shared, SharedTestStoreProperties testStoreProperties) : base(name, shared, testStoreProperties) { this.connection = new SqlConnection(CreateConnectionString(this.Name, true)); }
public InfoCarrierTestStoreFactory(SharedTestStoreProperties testStoreProperties, InfoCarrierBackendTestStoreFactory backendTestStoreFactory) { this.testStoreProperties = testStoreProperties; this.backendTestStoreFactory = backendTestStoreFactory; }
public InMemoryTestStore(string name, bool shared, SharedTestStoreProperties testStoreProperties) : base(name, shared, testStoreProperties) { }