-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new tests for deserializing to a dictionary.
- Loading branch information
1 parent
4812e4c
commit 542c393
Showing
538 changed files
with
51,996 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
10 changes: 10 additions & 0 deletions
10
...ers.GremlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_InV.verified.txt
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 @@ | ||
[ | ||
{ | ||
"Name": null, | ||
"Languages": null, | ||
"CountryCallingCode": null, | ||
"LocalizableDescription": null, | ||
"Id": -1, | ||
"Label": "Country" | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
...rs.GremlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_OutV.verified.txt
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,13 @@ | ||
[ | ||
{ | ||
"Age": 0, | ||
"Gender": null, | ||
"Image": null, | ||
"RegistrationDate": null, | ||
"PhoneNumbers": null, | ||
"SomeObscureProperty": null, | ||
"Name": null, | ||
"Id": -1, | ||
"Label": "Person" | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
...inServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_With_Ignored.verified.txt
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,9 @@ | ||
[ | ||
{ | ||
"Role": null, | ||
"From": "0001-01-01T00:00:00", | ||
"To": "2020-04-07T14:43:36Z", | ||
"Id": -1, | ||
"Label": "WorksFor" | ||
} | ||
] |
6 changes: 6 additions & 0 deletions
6
...Server.Tests/GremlinServerDictionaryDeserializationTests.AddE_from_StepLabel.verified.txt
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,6 @@ | ||
[ | ||
{ | ||
"Id": -1, | ||
"Label": "Speaks" | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
...GremlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_from_to.verified.txt
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,9 @@ | ||
[ | ||
{ | ||
"Role": "Admin", | ||
"From": "2020-04-07T14:43:36Z", | ||
"To": "2020-04-07T14:43:36Z", | ||
"Id": -1, | ||
"Label": "WorksFor" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...Server.Tests/GremlinServerDictionaryDeserializationTests.AddE_from_traversal.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"Since": null, | ||
"Id": -1, | ||
"Label": "LivesIn" | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
...remlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_property.verified.txt
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 @@ | ||
[ | ||
{ | ||
"Since": { | ||
"Value": "2020-04-07T14:43:36+00:00", | ||
"Key": null | ||
}, | ||
"Id": -1, | ||
"Label": "LivesIn" | ||
} | ||
] |
6 changes: 6 additions & 0 deletions
6
...inServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_to_StepLabel.verified.txt
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,6 @@ | ||
[ | ||
{ | ||
"Id": -1, | ||
"Label": "Speaks" | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
...GremlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_to_from.verified.txt
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,9 @@ | ||
[ | ||
{ | ||
"Role": "Admin", | ||
"From": "2020-04-07T14:43:36Z", | ||
"To": "2020-04-07T14:43:36Z", | ||
"Id": -1, | ||
"Label": "WorksFor" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...inServer.Tests/GremlinServerDictionaryDeserializationTests.AddE_to_traversal.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"Since": null, | ||
"Id": -1, | ||
"Label": "LivesIn" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...oviders.GremlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddV.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": "en", | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
...emlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddV_TimeFrame.verified.txt
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,9 @@ | ||
[ | ||
{ | ||
"Enabled": false, | ||
"StartTime": "08:00:00", | ||
"Duration": "02:00:00", | ||
"Id": -1, | ||
"Label": "TimeFrame" | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
...inServer.Tests/GremlinServerDictionaryDeserializationTests.AddV_With_Ignored.verified.txt
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,21 @@ | ||
[ | ||
{ | ||
"Age": 0, | ||
"Gender": null, | ||
"Image": null, | ||
"RegistrationDate": "2020-04-07T14:43:36+00:00", | ||
"PhoneNumbers": null, | ||
"SomeObscureProperty": null, | ||
"Name": { | ||
"Id": -1, | ||
"Label": "Name", | ||
"Properties": { | ||
"ValidFrom": "0001-01-01T00:00:00+00:00" | ||
}, | ||
"Value": "Marko", | ||
"Key": null | ||
}, | ||
"Id": -1, | ||
"Label": "Person" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...nServer.Tests/GremlinServerDictionaryDeserializationTests.AddV_ignores_label.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": null, | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
...Server.Tests/GremlinServerDictionaryDeserializationTests.AddV_with_MetaModel.verified.txt
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,20 @@ | ||
[ | ||
{ | ||
"FoundingDate": "0001-01-01T00:00:00", | ||
"PhoneNumbers": null, | ||
"Locations": [ | ||
{ | ||
"Id": -1, | ||
"Label": "Locations", | ||
"Properties": { | ||
"ValidFrom": "2019-01-01T01:00:00+00:00" | ||
}, | ||
"Value": "Aachen", | ||
"Key": null | ||
} | ||
], | ||
"Name": null, | ||
"Id": -1, | ||
"Label": "Company" | ||
} | ||
] |
19 changes: 19 additions & 0 deletions
19
...s/GremlinServerDictionaryDeserializationTests.AddV_with_Meta_with_properties.verified.txt
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,19 @@ | ||
[ | ||
{ | ||
"Name": { | ||
"Id": -1, | ||
"Label": "Name", | ||
"Properties": { | ||
"de": "Deutschland", | ||
"en": "Germany" | ||
}, | ||
"Value": "GER", | ||
"Key": null | ||
}, | ||
"Languages": null, | ||
"CountryCallingCode": null, | ||
"LocalizableDescription": null, | ||
"Id": -1, | ||
"Label": "Country" | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
...remlinServerDictionaryDeserializationTests.AddV_with_Meta_without_properties.verified.txt
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,16 @@ | ||
[ | ||
{ | ||
"Name": { | ||
"Id": -1, | ||
"Label": "Name", | ||
"Properties": {}, | ||
"Value": "GER", | ||
"Key": null | ||
}, | ||
"Languages": null, | ||
"CountryCallingCode": null, | ||
"LocalizableDescription": null, | ||
"Id": -1, | ||
"Label": "Country" | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
...ts/GremlinServerDictionaryDeserializationTests.AddV_with_byte_array_property.verified.txt
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,13 @@ | ||
[ | ||
{ | ||
"Age": 0, | ||
"Gender": null, | ||
"Image": "AQIDBAUGBwg=", | ||
"RegistrationDate": null, | ||
"PhoneNumbers": null, | ||
"SomeObscureProperty": null, | ||
"Name": null, | ||
"Id": -1, | ||
"Label": "Person" | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
...er.Tests/GremlinServerDictionaryDeserializationTests.AddV_with_enum_property.verified.txt
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,13 @@ | ||
[ | ||
{ | ||
"Age": 0, | ||
"Gender": 1, | ||
"Image": null, | ||
"RegistrationDate": null, | ||
"PhoneNumbers": null, | ||
"SomeObscureProperty": null, | ||
"Name": null, | ||
"Id": -1, | ||
"Label": "Person" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...ts/GremlinServerDictionaryDeserializationTests.AddV_with_ignored_id_property.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": "en", | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...Tests/GremlinServerDictionaryDeserializationTests.AddV_with_ignored_property.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": null, | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
...r.Tests/GremlinServerDictionaryDeserializationTests.AddV_with_multi_property.verified.txt
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,13 @@ | ||
[ | ||
{ | ||
"FoundingDate": "0001-01-01T00:00:00", | ||
"PhoneNumbers": [ | ||
"+4912345", | ||
"+4923456" | ||
], | ||
"Locations": null, | ||
"Name": null, | ||
"Id": -1, | ||
"Label": "Company" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...mlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddV_with_nulls.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": null, | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
....Tests/GremlinServerDictionaryDeserializationTests.AddV_with_overridden_name.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": "en", | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...mlinServer.Tests/GremlinServerDictionaryDeserializationTests.AddV_without_id.verified.txt
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,7 @@ | ||
[ | ||
{ | ||
"IetfLanguageTag": "en", | ||
"Id": -1, | ||
"Label": "Language" | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
...nServer.Tests/GremlinServerDictionaryDeserializationTests.AddV_without_model.verified.txt
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,16 @@ | ||
[ | ||
{ | ||
"id": -1, | ||
"label": "Language", | ||
"properties": { | ||
"IetfLanguageTag": [ | ||
{ | ||
"id": -1, | ||
"label": "IetfLanguageTag", | ||
"value": "en", | ||
"properties": {} | ||
} | ||
] | ||
} | ||
} | ||
] |
Oops, something went wrong.