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

@@ -112,6 +112,9 @@ public sealed class Book : AggregateRoot<BookId>
/// Gets the list of objects representing the unique identifiers of the media contributors (actors, directors, etc) starring in this book.
/// </summary>
public IReadOnlyCollection<MediaContributorId> Contributors => _contributors.AsReadOnly();
// TODO: the roles of the media contributors currently live only in the persistence layer (BookContributorEntity), and are lost
// at the domain level. To keep consistency with the Music aggregate, which models its credits as a MediaContributorCredit value
// object carrying both the contributor and the role, the roles should be moved into the Book aggregate as well.
/// <summary>
/// Gets the list of ratings for this book.
@@ -1,16 +0,0 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.Services;
#endregion
namespace Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.Services;
/// <summary>
/// Interface for the service for managing written content.
/// </summary>
public interface IWrittenContentLibraryService
{
/// <summary>
/// Gets the service for managing book libraries.
/// </summary>
public IBookLibraryService BookLibraryService { get; }
}
@@ -1,25 +0,0 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate.Services;
#endregion
namespace Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.Services;
/// <summary>
/// Service for managing written content.
/// </summary>
public class WrittenContentLibraryService : IWrittenContentLibraryService
{
/// <summary>
/// Gets the service for managing book libraries.
/// </summary>
public IBookLibraryService BookLibraryService { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="WrittenContentLibraryService"/> class.
/// </summary>
/// <param name="bookLibraryService">Injected book library service.</param>
public WrittenContentLibraryService(IBookLibraryService bookLibraryService)
{
BookLibraryService = bookLibraryService;
}
}