Deveel.Data.GrantTests.OnTearDown C# (CSharp) Method

OnTearDown() protected method

protected OnTearDown ( string testName, IQuery query ) : bool
testName string
query IQuery
return bool
        protected override bool OnTearDown(string testName, IQuery query)
        {
            query.Access().DeleteUser("test_user");
            query.Access().DropRole("test_role");

            var tableName1 = ObjectName.Parse("APP.test_table");
            var tableName2 = ObjectName.Parse("APP.test_table2");

            query.Access().DropAllTableConstraints(tableName1);
            query.Access().DropObject(DbObjectType.Table, tableName1);
            query.Access().DropObject(DbObjectType.Table, tableName2);
            return true;
        }