protected void GenerateSqlWhenNoArgs()
        {
            var trigger = new OnInsertTriggerRawSqlAction <SourceEntity>("PERFORM func()");

            var generatedSql = trigger.BuildSql(Provider);

            Assert.Equal(ExceptedInsertTriggerSqlWhenNoArgs, generatedSql);
        }
        protected void GenerateSqlForComputedArgs()
        {
            Expression <Func <SourceEntity, object> > argExpression = sourceEntity => sourceEntity.DoubleValue + 10;

            var trigger = new OnInsertTriggerRawSqlAction <SourceEntity>("PERFORM func({0})", argExpression);

            var generatedSql = trigger.BuildSql(Provider);

            Assert.Equal(ExceptedInsertTriggerSqlForComputedArgs, generatedSql);
        }
        protected void GenerateSqlForMemberArgs()
        {
            Expression <Func <SourceEntity, object> > arg1Expression = sourceEntity => sourceEntity.BooleanValue;
            Expression <Func <SourceEntity, object> > arg2Expression = sourceEntity => sourceEntity.DoubleValue;

            var trigger = new OnInsertTriggerRawSqlAction <SourceEntity>("PERFORM func({0}, {1})", arg1Expression, arg2Expression);

            var generatedSql = trigger.BuildSql(Provider);

            Assert.Equal(ExceptedInsertTriggerSqlForMemberArgs, generatedSql);
        }