Inheritance: IVariableManager
Beispiel #1
0
 internal BlockContext(IContext parent)
     : base(parent)
 {
     this.RegisterInstance<IBlockContext>(this);
     variableManager = new VariableManager(this);
     exceptions = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
 }
Beispiel #2
0
        public TransactionContext(IDatabaseContext databaseContext)
            : base(databaseContext)
        {
            VariableManager = new VariableManager(this);
            CursorManager = new CursorManager(this);

            EventRegistry = new TransactionRegistry(this);
        }
        public void SetUp()
        {
            variableManager = new VariableManager(null);

            if (TestContext.CurrentContext.Test.Name != "DefineVariable") {
                var varInfo = new VariableInfo("a", PrimitiveTypes.String(), false);
                variableManager.DefineVariable(varInfo);
            }
        }
        public void SetUp()
        {
            variableManager = new VariableManager(null);

            if (TestContext.CurrentContext.Test.Name != "DefineVariable")
            {
                var varInfo = new VariableInfo("a", PrimitiveTypes.String(), false);
                variableManager.DefineVariable(varInfo);
            }
        }
        public VariableManagerTests()
        {
            var parent = new Mock <IContext>();

            parent.SetupGet(x => x.Scope)
            .Returns(new ServiceContainer());

            context = parent.Object;

            manager = new VariableManager();

            var obj1 = new SqlObject(PrimitiveTypes.Integer(), (SqlNumber)1);

            manager.AssignVariable(context, "a", true, SqlExpression.Constant(obj1));

            var obj2 = new SqlObject(PrimitiveTypes.Boolean(), (SqlBoolean)false);

            manager.AssignVariable(context, "a_b", true, SqlExpression.Constant(obj2));
        }
Beispiel #6
0
        private void InitManagers()
        {
            schemaManager = new SchemaManager(this);
            tableManager = new TableManager(this, TableComposite);
            sequenceManager = new SequenceManager(this);
            viewManager = new ViewManager(this);
            variableManager = new VariableManager(this);
            triggerManager = new TriggerManager(this);

            Managers = new ObjectManagersResolver(this);
        }
Beispiel #7
0
        protected override void Dispose(bool disposing)
        {
            if (disposing) {
                if (variableManager != null)
                    variableManager.Dispose();
            }

            variableManager = null;
            base.Dispose(disposing);
        }
 public void TearDown()
 {
     variableManager.Dispose();
     variableManager = null;
 }
 public void TearDown()
 {
     variableManager.Dispose();
     variableManager = null;
 }