using MediatR;
using FacebookService.Domain.AggregatesModel.CustomerAggregate;

namespace FacebookService.Domain.Events;

/// <summary>
/// EN: Domain event raised when a new Customer is created.
/// VI: Domain event được phát ra khi một Customer mới được tạo.
/// </summary>
public class CustomerCreatedDomainEvent : INotification
{
    /// <summary>
    /// EN: The newly created customer.
    /// VI: Customer mới được tạo.
    /// </summary>
    public Customer Customer { get; }

    public CustomerCreatedDomainEvent(Customer customer)
    {
        Customer = customer;
    }
}
