mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Removes the redundant null guards from the metadata value objects
This commit is contained in:
1 parent
ef913f5c9e
commit
7534155f0e
4 files changed
+2
-42
No files matched your search
-21
@@ -4,7 +4,6 @@ using Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
using Lumina.Domain.Core.BoundedContexts.VideoLibraryBoundedContext.MovieLibraryAggregate.ValueObjects;
|
||||
using Lumina.Domain.Fixtures.Common.ValueObjects.Metadata;
|
||||
using Lumina.Domain.Fixtures.Core.BoundedContexts.VideoLibraryBoundedContext.MovieLibraryAggregate.ValueObjects;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
@@ -58,26 +57,6 @@ public class VideoMetadataTests
|
||||
Assert.False(result.Value.OriginalLanguage.HasValue);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Create_WhenResolutionIsNull_ShouldThrowArgumentNullException()
|
||||
{
|
||||
// Act & Assert
|
||||
Assert.Throws<ArgumentNullException>(() => VideoMetadata.Create(
|
||||
"Inception",
|
||||
Optional<string>.None(),
|
||||
durationInSeconds: 8880,
|
||||
null!,
|
||||
Optional<string>.None(),
|
||||
_releaseInfoFixture.Create(),
|
||||
Optional<LanguageInfo>.None(),
|
||||
Optional<LanguageInfo>.None(),
|
||||
Optional<float>.None(),
|
||||
Optional<string>.None(),
|
||||
Optional<string>.None(),
|
||||
[],
|
||||
[]));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Equals_WithSameValues_ShouldReturnTrue()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user