mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds authorization module tests
This commit is contained in:
1 parent
718e1c49cf
commit
0114ff13e8
125 files changed
+10411
-203
No files matched your search
+2
-2
@@ -36,7 +36,7 @@ public class BookJsonConverter : JsonConverter<Book>
|
||||
JsonElement root = doc.RootElement;
|
||||
|
||||
Guid id = root.GetProperty("id").GetGuid();
|
||||
DateTime created = root.GetProperty("created").GetDateTime();
|
||||
DateTime createdOnUtc = root.GetProperty("createdOnUtc").GetDateTime();
|
||||
WrittenContentMetadata metadata = DeserializeMetadata(root.GetProperty("metadata"));
|
||||
BookFormat? format = null;
|
||||
if (root.TryGetProperty("format", out JsonElement formatElement))
|
||||
@@ -80,7 +80,7 @@ public class BookJsonConverter : JsonConverter<Book>
|
||||
Optional<string>.FromNullable(googleBooksId),
|
||||
Optional<string>.FromNullable(barnesAndNobleId),
|
||||
Optional<string>.FromNullable(appleBooksId),
|
||||
created,
|
||||
createdOnUtc,
|
||||
default,
|
||||
isbns,
|
||||
contributorIds,
|
||||
|
||||
Reference in new issue
Block a user