Adds domain Music aggregate

This commit is contained in:
BinaryAlley committed 2026-09-07 09:41:57 -07:00
1 parent bde08c7440
commit 3a720af29f
100 files changed
+13077 -558

No files matched your search

@@ -2,14 +2,14 @@
using Bogus;
using Lumina.Domain.Common.Primitives;
using Lumina.Domain.Common.ValueObjects.Metadata;
using Lumina.Domain.Core.BoundedContexts.AudioLibraryBoundedContext.AudioLibraryAggregate.ValueObjects;
using Lumina.Domain.Core.BoundedContexts.AudioLibraryBoundedContext.Common.ValueObjects;
using Lumina.Domain.Fixtures.Common.ValueObjects.Metadata;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
#endregion
namespace Lumina.Domain.Fixtures.Core.BoundedContexts.AudioLibraryBoundedContext.AudioLibraryAggregate.ValueObjects;
namespace Lumina.Domain.Fixtures.Core.BoundedContexts.AudioLibraryBoundedContext.Common.ValueObjects;
/// <summary>
/// Fixture class for the <see cref="AudioMetadata"/> domain value object.
@@ -3,6 +3,7 @@ using Lumina.Domain.Common.Primitives;
using Lumina.Domain.Core.BoundedContexts.MediaContributorBoundedContext.MediaContributorAggregate;
using Lumina.Domain.Core.BoundedContexts.MediaContributorBoundedContext.MediaContributorAggregate.ValueObjects;
using Lumina.Domain.Fixtures.Core.BoundedContexts.MediaContributorBoundedContext.MediaContributorAggregate.ValueObjects;
using Lumina.Domain.SharedKernel.Common.Enums.MediaContributors;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -24,6 +25,7 @@ public class MediaContributorFixture
/// Creates a random valid <see cref="MediaContributor"/> domain aggregate.
/// </summary>
/// <param name="id">Optional. The Id of the contributor.</param>
/// <param name="type">Optional. The type of the contributor.</param>
/// <param name="name">Optional. The name of the contributor.</param>
/// <param name="biography">Optional. The biography of the contributor.</param>
/// <param name="dateOfBirth">Optional. The date of birth of the contributor.</param>
@@ -31,6 +33,7 @@ public class MediaContributorFixture
/// <returns>The created <see cref="MediaContributor"/> domain aggregate.</returns>
public MediaContributor Create(
MediaContributorId? id = null,
MediaContributorType? type = null,
MediaContributorName? name = null,
Optional<string>? biography = null,
Optional<DateOnly>? dateOfBirth = null,
@@ -38,6 +41,7 @@ public class MediaContributorFixture
{
Result<MediaContributor> result = MediaContributor.Create(
id ?? _mediaContributorIdFixture.Create(),
type ?? MediaContributorType.Person,
name ?? _mediaContributorNameFixture.Create(),
biography ?? Optional<string>.None(),
dateOfBirth ?? Optional<DateOnly>.None(),