public void UnderNotExistingType()
        {
            var typeName       = ObjectName.Parse("APP.type1");
            var parentTypeName = ObjectName.Parse("APP.parentType");

            Assert.Throws <StatementException>(() => AdminQuery.CreateType(typeName, parentTypeName, new UserTypeMember("age", PrimitiveTypes.Integer())));
        }
        public void SimpleType()
        {
            var typeName = ObjectName.Parse("APP.type1");

            AdminQuery.CreateType(typeName, new[] { new UserTypeMember("a", PrimitiveTypes.String()) });

            var exists = AdminQuery.Access().TypeExists(typeName);

            Assert.IsTrue(exists);
        }
        public void UnderType()
        {
            var typeName       = ObjectName.Parse("APP.type1");
            var parentTypeName = ObjectName.Parse("APP.parentType");

            AdminQuery.CreateType(typeName, parentTypeName, new UserTypeMember("age", PrimitiveTypes.Integer()));

            var exists = AdminQuery.Access().TypeExists(typeName);

            Assert.IsTrue(exists);
        }