Removes the redundant null guards from the metadata value objects

This commit is contained in:
BinaryAlley committed 2026-09-26 17:54:22 +03:00
1 parent ef913f5c9e
commit 7534155f0e
4 files changed
+2 -42

No files matched your search

@@ -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()
{