mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 13:01:10 +00:00
Aligns the book metadata contract and consolidates metadata conversion and merging
This commit is contained in:
1 parent
590e49c9de
commit
e2d8e62908
43 files changed
+1076
-849
No files matched your search
+5
-5
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Nemera.Contracts.DTO.Common;
|
||||
using Nemera.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
using Nemera.Contracts.Fixtures.Core.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
|
||||
using Nemera.Plugins.Calibre.Core;
|
||||
using Nemera.Plugins.Calibre.Core.Opf;
|
||||
using Nemera.Plugins.Contracts.Core.Metadata;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
@@ -41,7 +41,7 @@ public class OpfReaderSecurityTests
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.Null(((BookMetadataDto)result!).Title);
|
||||
Assert.Null(((BookMetadataDto)result!).Metadata!.Title);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -65,7 +65,7 @@ public class OpfReaderSecurityTests
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.Null(((BookMetadataDto)result!).Title);
|
||||
Assert.Null(((BookMetadataDto)result!).Metadata!.Title);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -89,7 +89,7 @@ public class OpfReaderSecurityTests
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.Null(((BookMetadataDto)result!).Title);
|
||||
Assert.Null(((BookMetadataDto)result!).Metadata!.Title);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -113,7 +113,7 @@ public class OpfReaderSecurityTests
|
||||
// Assert
|
||||
// A malformed OPF must be swallowed and must not leak an exception to the caller.
|
||||
Assert.NotNull(result);
|
||||
Assert.Null(((BookMetadataDto)result!).Title);
|
||||
Assert.Null(((BookMetadataDto)result!).Metadata!.Title);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user