예제 #1
0
        public HiloSequenceTests(DefaultStoreFixture fixture) : base(fixture)
        {
            theStore.Advanced.Clean.CompletelyRemoveAll();

            theTenant = theStore.Tenancy.Default;

            theSequence = theTenant.Database.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>();
        }
예제 #2
0
        public HiloSequenceTests()
        {
            theStore.Advanced.Clean.CompletelyRemoveAll();

            theTenant = theStore.Tenancy.Default;

            theSequence = theTenant.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>();
        }
예제 #3
0
        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>();
        }
예제 #4
0
        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());
        }
예제 #5
0
        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());
        }
예제 #6
0
        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());
        }
예제 #7
0
        public HiloSequenceTests()
        {
            theTenant = theStore.Tenancy.Default;

            theSequence = theTenant.Sequences.SequenceFor(typeof(Foo)).As <HiloSequence>();
        }