Tightens the metadata value object nullability and extracts their mappings

This commit is contained in:
BinaryAlley committed 2026-09-15 02:55:23 +03:00
1 parent 89886ebe22
commit c0302ecc50
13 files changed
+76 -13

No files matched your search

@@ -34,7 +34,7 @@ public class Genre : ValueObject
/// <returns>
/// An <see cref="Result{TValue}"/> containing either a successfully created <see cref="Genre"/>, or an error message.
/// </returns>
public static Result<Genre> Create(string? name)
public static Result<Genre> Create(string name)
{
if (string.IsNullOrWhiteSpace(name))
return Errors.Errors.Metadata.GenreNameCannotBeEmpty;
@@ -35,7 +35,7 @@ public class Mood : ValueObject
/// <returns>
/// An <see cref="Result{TValue}"/> containing either a successfully created <see cref="Mood"/>, or an error message.
/// </returns>
public static Result<Mood> Create(string? name)
public static Result<Mood> Create(string name)
{
if (string.IsNullOrWhiteSpace(name))
return Errors.Errors.Metadata.MoodNameCannotBeEmpty;
@@ -35,7 +35,7 @@ public class Tag : ValueObject
/// <returns>
/// An <see cref="Result{TValue}"/> containing either a successfully created <see cref="Tag"/>, or an error message.
/// </returns>
public static Result<Tag> Create(string? name)
public static Result<Tag> Create(string name)
{
if (string.IsNullOrWhiteSpace(name))
return Errors.Errors.Metadata.TagNameCannotBeEmpty;