Skip to content

Commit 402c5ec

Browse files
author
samatrhea
committed
[Update] PIM POCO and DTO's serialization to 02-2023 release
1 parent 383c828 commit 402c5ec

60 files changed

Lines changed: 14120 additions & 8321 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SysML2.NET.OGM/PIM/AutoGenRepository/BranchRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private List<Branch> CreateData()
144144
{
145145
Id = Guid.Parse("a6ba210d32a94c2986fe3b9a92f88133"),
146146
Alias = new List<string> { "branch alias 1", "branch alias 2" },
147-
CreationTimestamp = new DateTime(1976, 08, 20),
147+
//CreationTimestamp = new DateTime(1976, 08, 20),
148148
//DefaultBranch = Guid.Parse("a910a705-7fbe-415f-9cbb-624bfadf6c20"),
149149
Description = "this is a description for branch 1",
150150
Name = "master",
@@ -154,7 +154,7 @@ private List<Branch> CreateData()
154154
{
155155
Id = Guid.Parse("d9077028cf1e4845b8a2569ce8e31722"),
156156
Alias = new List<string> { "branch alias 1", "branch alias 2" },
157-
CreationTimestamp = new DateTime(1976, 08, 20),
157+
//CreationTimestamp = new DateTime(1976, 08, 20),
158158
//DefaultBranch = Guid.Parse("8c65591a-5024-4aee-bb8d-3458a113fe7c"),
159159
Description = "this is a description for branch 2",
160160
Name = "development"

SysML2.NET.Serializer.Json.Tests/ApiSerializerTestFixture.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,34 @@ private void CreateTestData()
5858
{
5959
Id = Guid.Parse("9b0e1914-3241-461e-b9ee-a3ff5120de4e"),
6060
Alias = new List<string> { "project alias 1", "project alias 2"},
61+
Created = new DateTime(1976, 8, 20),
6162
DefaultBranch = Guid.Parse("a910a705-7fbe-415f-9cbb-624bfadf6c20"),
6263
Description = "this is a description",
6364
Name = "test project",
65+
ResourceIdentifier = "http://www.rheagroup.com/project",
6466
};
6567

6668
this.commit = new Commit
6769
{
6870
Id = Guid.Parse("94e5b40e-741e-49ca-bd7f-f3138c071bf9"),
71+
Alias = new List<string> { "commit alias 1", "commit alias 2" },
72+
Created = new DateTime(1976, 8, 20),
6973
Description = "",
7074
OwningProject = Guid.Parse("9b0e1914-3241-461e-b9ee-a3ff5120de4e"),
71-
PreviousCommit = null,
72-
TimeStamp = new DateTime(1976, 8, 20),
75+
PreviousCommits = null,
76+
ResourceIdentifier = "http://www.rheagroup.com/commit",
7377
};
7478

7579
this.branch = new Branch
7680
{
7781
Id = Guid.Parse("a910a705-7fbe-415f-9cbb-624bfadf6c20"),
78-
Alias = new List<string> { "branch alias 1"},
79-
CreationTimestamp = new DateTime(1976, 8, 20),
82+
Alias = null,
83+
Created = new DateTime(1976, 8, 20),
8084
Description = "branch description",
81-
ReferencedCommit = Guid.Parse("94e5b40e-741e-49ca-bd7f-f3138c071bf9"),
82-
TimeStamp = new DateTime(1976, 8, 20)
85+
Head = Guid.Parse("94e5b40e-741e-49ca-bd7f-f3138c071bf9"),
86+
Name = "branch name",
87+
OwningProject = Guid.Parse("9b0e1914-3241-461e-b9ee-a3ff5120de4e"),
88+
ResourceIdentifier = "http://www.rheagroup.com/branch",
8389
};
8490
}
8591

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"@id": "c294a463-6c9c-47a8-b592-01252c5ab2a7",
3+
"@type": "Branch",
4+
"created": "2023-03-13T17:53:50.188295-04:00",
5+
"head": { "@id": "6d7ad9fd-6520-4ff2-885b-8c5c129e6c27" },
6+
"name": "main",
7+
"owningProject": { "@id": "000e9890-6935-43e6-a5d7-5d7cac601f4c" },
8+
"referencedCommit": { "@id": "6d7ad9fd-6520-4ff2-885b-8c5c129e6c27" }
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{
3+
"@id": "c294a463-6c9c-47a8-b592-01252c5ab2a7",
4+
"@type": "Branch",
5+
"created": "2023-03-13T17:53:50.188295-04:00",
6+
"head": { "@id": "6d7ad9fd-6520-4ff2-885b-8c5c129e6c27" },
7+
"name": "main",
8+
"owningProject": { "@id": "000e9890-6935-43e6-a5d7-5d7cac601f4c" },
9+
"referencedCommit": { "@id": "6d7ad9fd-6520-4ff2-885b-8c5c129e6c27" }
10+
}
11+
]

0 commit comments

Comments
 (0)