예제 #1
0
        public async Task SchemaEvents()
        {
            var store = await StoreBuilder.New().CreateAsync();

            var def    = new MySchemaDefinition();
            var schema = await store.Schemas.New(def).CreateAsync();

            Assert.True(def.IsSchemaLoaded);
        }
예제 #2
0
        public async Task UnloadSchema()
        {
            var store = await StoreBuilder.New().CreateAsync();

            var def    = new MySchemaDefinition();
            var schema = await store.Schemas.New(def).CreateAsync();

            Assert.NotNull(schema);
            store.Schemas.Unload(schema);
            Assert.Equal(1, store.Schemas.All().Count());
        }