Deveel.Data.DropViewTests.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)
        {
            var tn1 = ObjectName.Parse("APP.test_table1");
            var viewName = ObjectName.Parse("APP.test_view1");

            query.Access().DropAllTableConstraints(tn1);
            query.Access().DropObject(DbObjectType.View, viewName);
            query.Access().DropObject(DbObjectType.Table, tn1);
            return true;
        }