Skip to content

Commit b500a7a

Browse files
committed
Fixed test case
1 parent fef37ae commit b500a7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/DataverseProxyGenerator.Tests/RetrieveMethodTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ public void EntityClass_ShouldGenerateAlternateKeyRetrieveMethods()
211211

212212
// Assert
213213
file.Should().NotBeNull();
214-
file!.Content.Should().Contain("public static Account Retrieve_ThisKey(IOrganizationService service, string Name, int? AccountNumber, params Expression<Func<Account, object>>[] columns)");
215-
file.Content.Should().Contain("var keyedEntityReference = new EntityReference(EntityLogicalName, \"ThisKey\", new KeyAttributeCollection");
214+
file!.Content.Should().Contain("public static Account Retrieve_ThisKey(IOrganizationService service, string Name, int AccountNumber, params Expression<Func<Account, object>>[] columns)");
215+
file.Content.Should().Contain("var keyedEntityReference = new EntityReference(EntityLogicalName, new KeyAttributeCollection");
216216
file.Content.Should().Contain("[\"name\"] = Name,");
217217
file.Content.Should().Contain("[\"new_accountnumber\"] = AccountNumber");
218218
file.Content.Should().Contain("return service.Retrieve(keyedEntityReference, columns);");

0 commit comments

Comments
 (0)