-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cover resource_data_record with unit tests (#341)
* adding unit tests for resource_data_record * removing code * chore: Fix parameter name in applyRelations function
- Loading branch information
Showing
39 changed files
with
18,222 additions
and
22 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 154 additions & 0 deletions
154
...cord/tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{ | ||
"@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#accounts/$entity", | ||
"@odata.etag": "W/\"2264380\"", | ||
"address1_latitude": 47.63, | ||
"merged": false, | ||
"territorycode": 1, | ||
"exchangerate": 1.000000000000, | ||
"accountcategorycode": 1, | ||
"name": "Sample Account", | ||
"_owningbusinessunit_value": "d568ee97-961f-ef11-840b-000d3abf969a", | ||
"_owninguser_value": "c76fee97-961f-ef11-840b-000d3abf969a", | ||
"_primarycontactid_value": "00000000-0000-0000-0000-000000000010", | ||
"donotpostalmail": false, | ||
"accountratingcode": 1, | ||
"marketingonly": false, | ||
"revenue_base": 5000000.0000000000, | ||
"preferredcontactmethodcode": 1, | ||
"_ownerid_value": "c76fee97-961f-ef11-840b-000d3abf969a", | ||
"accountclassificationcode": 1, | ||
"description": "This is the description of the sample account", | ||
"customersizecode": 1, | ||
"businesstypecode": 1, | ||
"donotemail": false, | ||
"address2_shippingmethodcode": 1, | ||
"address1_addressid": "92dc7147-a78a-4bd6-b2d8-a4ee1a5b9da2", | ||
"address2_freighttermscode": 1, | ||
"statuscode": 1, | ||
"createdon": "2024-06-12T14:13:25Z", | ||
"donotsendmm": false, | ||
"donotfax": false, | ||
"donotbulkpostalmail": false, | ||
"versionnumber": 2264380, | ||
"modifiedon": "2024-06-12T14:13:25Z", | ||
"creditonhold": false, | ||
"donotphone": false, | ||
"_transactioncurrencyid_value": "3d2766c7-c41f-ef11-840b-000d3abf969a", | ||
"accountid": "00000000-0000-0000-0000-000000000020", | ||
"donotbulkemail": false, | ||
"_modifiedby_value": "c76fee97-961f-ef11-840b-000d3abf969a", | ||
"followemail": true, | ||
"shippingmethodcode": 1, | ||
"_createdby_value": "c76fee97-961f-ef11-840b-000d3abf969a", | ||
"address2_addresstypecode": 1, | ||
"revenue": 5000000.0000000000, | ||
"participatesinworkflow": false, | ||
"statecode": 0, | ||
"address2_addressid": "0887c958-8401-4fa4-86ea-21dedc00eff2", | ||
"telephone3": null, | ||
"address1_shippingmethodcode": null, | ||
"sharesoutstanding": null, | ||
"ownershipcode": null, | ||
"address1_freighttermscode": null, | ||
"address1_upszone": null, | ||
"websiteurl": null, | ||
"address2_city": null, | ||
"_slainvokedid_value": null, | ||
"address1_postofficebox": null, | ||
"importsequencenumber": null, | ||
"preferredappointmentdaycode": null, | ||
"customertypecode": null, | ||
"utcconversiontimezonecode": null, | ||
"overriddencreatedon": null, | ||
"aging90": null, | ||
"stageid": null, | ||
"address1_utcoffset": null, | ||
"adx_createdbyipaddress": null, | ||
"_masterid_value": null, | ||
"lastonholdtime": null, | ||
"address2_fax": null, | ||
"accountnumber": null, | ||
"address2_line1": null, | ||
"address1_telephone3": null, | ||
"address1_telephone2": null, | ||
"address1_telephone1": null, | ||
"address2_postofficebox": null, | ||
"emailaddress1": null, | ||
"ftpsiteurl": null, | ||
"emailaddress2": null, | ||
"address2_latitude": null, | ||
"processid": null, | ||
"emailaddress3": null, | ||
"address2_composite": null, | ||
"traversedpath": null, | ||
"address1_city": null, | ||
"address2_line2": null, | ||
"aging30_base": null, | ||
"numberofemployees": null, | ||
"address1_addresstypecode": null, | ||
"address2_stateorprovince": null, | ||
"address2_postalcode": null, | ||
"_msa_managingpartnerid_value": null, | ||
"entityimage_url": null, | ||
"address1_composite": null, | ||
"aging60": null, | ||
"timezoneruleversionnumber": null, | ||
"address2_telephone3": null, | ||
"address2_telephone2": null, | ||
"address2_telephone1": null, | ||
"address1_postalcode": null, | ||
"address2_upszone": null, | ||
"_owningteam_value": null, | ||
"primarysatoriid": null, | ||
"address2_line3": null, | ||
"timespentbymeonemailandmeetings": null, | ||
"address1_country": null, | ||
"address2_longitude": null, | ||
"_modifiedonbehalfby_value": null, | ||
"creditlimit": null, | ||
"address1_line2": null, | ||
"paymenttermscode": null, | ||
"address1_county": null, | ||
"marketcap": null, | ||
"_preferredsystemuserid_value": null, | ||
"preferredappointmenttimecode": null, | ||
"address1_fax": null, | ||
"_createdonbehalfby_value": null, | ||
"address2_name": null, | ||
"creditlimit_base": null, | ||
"marketcap_base": null, | ||
"_modifiedbyexternalparty_value": null, | ||
"address2_utcoffset": null, | ||
"adx_modifiedbyusername": null, | ||
"sic": null, | ||
"_slaid_value": null, | ||
"fax": null, | ||
"address1_line1": null, | ||
"address2_county": null, | ||
"aging30": null, | ||
"address1_line3": null, | ||
"industrycode": null, | ||
"address1_stateorprovince": null, | ||
"onholdtime": null, | ||
"_createdbyexternalparty_value": null, | ||
"entityimage_timestamp": null, | ||
"entityimageid": null, | ||
"_parentaccountid_value": null, | ||
"yominame": null, | ||
"lastusedincampaign": null, | ||
"primarytwitterid": null, | ||
"adx_createdbyusername": null, | ||
"telephone2": null, | ||
"stockexchange": null, | ||
"aging90_base": null, | ||
"tickersymbol": null, | ||
"address1_name": null, | ||
"adx_modifiedbyipaddress": null, | ||
"telephone1": null, | ||
"address1_primarycontactname": null, | ||
"address1_longitude": null, | ||
"address2_primarycontactname": null, | ||
"entityimage": null, | ||
"aging60_base": null, | ||
"address2_country": null | ||
} |
10 changes: 10 additions & 0 deletions
10
...te_Create/get_account_00000000-0000-0000-0000-000000000020_contact_customer_accounts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#contacts(createdon)", | ||
"value": [ | ||
{ | ||
"@odata.etag": "W/\"2264386\"", | ||
"createdon": "2024-06-12T14:13:17Z", | ||
"contactid": "00000000-0000-0000-0000-000000000010" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
.../tests/resource/Validate_Create/get_account_00000000-0000-0000-0000-000000000020_ref.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@odata.context": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/$metadata#Collection($ref)", | ||
"value": [ | ||
{ | ||
"@odata.id": "https://00000000-0000-0000-0000-000000000001.crm4.dynamics.com/api/data/v9.2/contacts(00000000-0000-0000-0000-000000000010)" | ||
} | ||
] | ||
} |
Oops, something went wrong.