示例#1
0
 private static ConditionExpressionTree GetContentDynamicExpression()
 {
     var conditions = new DynamicExpression[] { new ConditionGeoTimeZone(), new ConditionGeoZipCode(), new ConditionStoreSearchedPhrase(), new ConditionAgeIs(), new ConditionGenderIs(), new ConditionGeoCity(), new ConditionGeoCountry(), new ConditionGeoState(), new ConditionLanguageIs() }.ToList();
     var rootBlock = new BlockContentCondition { AvailableChildren = conditions };
     var retVal = new ConditionExpressionTree()
     {
         Children = new DynamicExpression[] { rootBlock }
     };
     return retVal;
 }
        private static DynamicContentConditionTree GetExpressionTree(params ConditionTree[] condition)
        {
            var blockCondition = new BlockContentCondition()
                                 .WithChildrens(condition);

            var expression = new DynamicContentConditionTree();

            expression.WithChildrens(blockCondition);

            return(expression);
        }
示例#3
0
        private static ConditionExpressionTree GetContentDynamicExpression()
        {
            var conditions = new DynamicExpression[] { new ConditionGeoTimeZone(), new ConditionGeoZipCode(), new ConditionStoreSearchedPhrase(), new ConditionAgeIs(), new ConditionGenderIs(), new ConditionGeoCity(), new ConditionGeoCountry(), new ConditionGeoState(), new ConditionLanguageIs() }.ToList();
            var rootBlock = new BlockContentCondition {
                AvailableChildren = conditions
            };
            var retVal = new ConditionExpressionTree()
            {
                Children = new DynamicExpression[] { rootBlock }
            };

            return(retVal);
        }