Пример #1
0
        public async Task DefinePropertyMetadataTest()
        {
            var store = await StoreBuilder.New().CreateAsync();

            var schema = await store.Schemas.New <TestDomainDefinition>().CreateAsync();

            var domain = await store.DomainModels.New().CreateAsync("Test");

            ISchemaEntity metadata = schema.Definition.XExtendsBaseClass;

            Assert.NotNull(metadata);
            Assert.Equal(2, metadata.GetProperties(true).Count());
            Assert.NotNull(metadata.GetProperty("Name"));
            Assert.Equal(1, metadata.GetProperties(false).Count());
        }