Skip to content

Commit

Permalink
#245 Add Collection to Asset test data
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamZ-Kontent authored and gormal committed Jun 22, 2023
1 parent 3767913 commit 503bdc8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Kontent.Ai.Management.Tests/Data/Asset/Asset.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
}
],
"last_modified": "2021-11-06T13:57:51.3425375Z",
"collection": {
"reference": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
"elements": [
{
"element": {
Expand Down
5 changes: 5 additions & 0 deletions Kontent.Ai.Management.Tests/Data/Asset/AssetsPage1.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
}
],
"last_modified": "2021-11-06T13:57:51.3425375Z",
"collection": {
"reference": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
"elements": [
{
"element": {
Expand Down
5 changes: 5 additions & 0 deletions Kontent.Ai.Management.Tests/Data/Asset/AssetsPage2.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
}
],
"last_modified": "2021-11-06T13:57:51.3425375Z",
"collection": {
"reference": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
"elements": [
{
"element": {
Expand Down
5 changes: 5 additions & 0 deletions Kontent.Ai.Management.Tests/Data/Asset/AssetsPage3.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
}
],
"last_modified": "2021-11-06T13:57:51.3425375Z",
"collection": {
"reference": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
"elements": [
{
"element": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ private static AssetModel GetExpectedDynamicAssetModel(string assetId = "0164720
FileReference = stronglyTyped.FileReference,
LastModified = stronglyTyped.LastModified,
Descriptions = stronglyTyped.Descriptions,
Collection = stronglyTyped.Collection,
Elements = ElementsData.GetExpectedDynamicElements(),
};
}
Expand Down Expand Up @@ -679,6 +680,9 @@ private static AssetModel GetExpectedDynamicAssetModel(string assetId = "0164720
Description = "Bolso de cafe en grano"
}
},
Collection = new AssetCollectionReference {
Reference = Reference.ById(Guid.Empty)
},
Elements = ElementsData.GetExpectedStronglyTypedElementsModel(),
};
}

0 comments on commit 503bdc8

Please sign in to comment.