public HiloSequenceTests(DefaultStoreFixture fixture) : base(fixture) { theStore.Advanced.Clean.CompletelyRemoveAll(); theTenant = theStore.Tenancy.Default; theSequence = theTenant.Database.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>(); }
public HiloSequenceTests() { theStore.Advanced.Clean.CompletelyRemoveAll(); theTenant = theStore.Tenancy.Default; theSequence = theTenant.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>(); }
public HiloSequenceTests() { _container.GetInstance <DocumentCleaner>().CompletelyRemoveAll(); var storeOptions = new StoreOptions(); theTenant = new Tenant(storeOptions.Storage, storeOptions, new ConnectionSource(), Tenancy.DefaultTenantId); theSequence = theTenant.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>(); }
public HiloSequenceTests() { _container.GetInstance <DocumentCleaner>().CompletelyRemoveAll(); var sql = SchemaBuilder.GetText("mt_hilo"); _runner = _container.GetInstance <ICommandRunner>(); _runner.Execute(sql); theSequence = new HiloSequence(_runner, "foo", new HiloSettings()); }
public HiloSequenceTests() { _container.GetInstance <DocumentCleaner>().CompletelyRemoveAll(); var sql = SchemaBuilder.GetText("mt_hilo"); _connectionFactory = _container.GetInstance <IConnectionFactory>(); _connectionFactory.RunSql(sql); theSequence = new HiloSequence(_connectionFactory, "foo", new HiloSettings()); }
public HiloSequenceTests() { _container.GetInstance <DocumentCleaner>().CompletelyRemoveAll(); var storeOptions = new StoreOptions(); var sql = SchemaBuilder.GetSqlScript(storeOptions.DatabaseSchemaName, "mt_hilo"); var connectionFactory = _container.GetInstance <IConnectionFactory>(); connectionFactory.RunSql(sql); _theSequence = new HiloSequence(connectionFactory, storeOptions, "foo", new HiloSettings()); }
public HiloSequenceTests() { theTenant = theStore.Tenancy.Default; theSequence = theTenant.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>(); }