Example #1
0
 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>();
 }
Example #2
0
 public SqlServerTestStore(string name, bool shared, SharedTestStoreProperties testStoreProperties)
     : base(name, shared, testStoreProperties)
 {
     this.connection = new SqlConnection(CreateConnectionString(this.Name, true));
 }
Example #3
0
 public InfoCarrierTestStoreFactory(SharedTestStoreProperties testStoreProperties, InfoCarrierBackendTestStoreFactory backendTestStoreFactory)
 {
     this.testStoreProperties     = testStoreProperties;
     this.backendTestStoreFactory = backendTestStoreFactory;
 }
 public InMemoryTestStore(string name, bool shared, SharedTestStoreProperties testStoreProperties)
     : base(name, shared, testStoreProperties)
 {
 }