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); }
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); }