Skip to content

Commit

Permalink
C# FetchXML is now another Style etc
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Dec 10, 2022
1 parent e2e4be9 commit d83aae8
Show file tree
Hide file tree
Showing 12 changed files with 641 additions and 637 deletions.
6 changes: 3 additions & 3 deletions FXBTests/QueryExpressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void StandardCondition()
qe.ColumnSet = new ColumnSet("fullname", "lastname");
qe.Criteria.AddCondition("modifiedon", ConditionOperator.GreaterThan, "2020-01-01");

var converted = QueryExpressionCodeGenerator.GetCSharpQueryExpression(qe, null, new FXBSettings());
var converted = CSharpCodeGenerator.GetCSharpQueryExpression(qe, null, new FXBSettings());

var expected = @"// Define Condition Values
var query_modifiedon = ""2020-01-01"";
Expand All @@ -40,7 +40,7 @@ public void ColumnComparisonCondition()
qe.ColumnSet = new ColumnSet("fullname", "lastname");
qe.Criteria.AddCondition(new ConditionExpression("modifiedon", ConditionOperator.GreaterThan, true, "createdon"));

var converted = QueryExpressionCodeGenerator.GetCSharpQueryExpression(qe, null, new FXBSettings());
var converted = CSharpCodeGenerator.GetCSharpQueryExpression(qe, null, new FXBSettings());

var expected = @"// Define Condition Values
var query_modifiedon = ""createdon"";
Expand All @@ -66,7 +66,7 @@ public void MultipleComparisonsOnSameField()
qe.Criteria.AddCondition("modifiedon", ConditionOperator.GreaterThan, "2020-01-01");
qe.Criteria.AddCondition(new ConditionExpression("modifiedon", ConditionOperator.GreaterThan, true, "createdon"));

var converted = QueryExpressionCodeGenerator.GetCSharpQueryExpression(qe, null, new FXBSettings());
var converted = CSharpCodeGenerator.GetCSharpQueryExpression(qe, null, new FXBSettings());

var expected = @"// Define Condition Values
var query_modifiedon = ""2020-01-01"";
Expand Down
Loading

0 comments on commit d83aae8

Please sign in to comment.