using IamService.Domain.SeedWork;
using IamService.Domain.AggregatesModel.UserAggregate;

namespace IamService.Domain.Events;

/// <summary>
/// EN: Domain event raised when a new user is registered.
/// VI: Domain event được raise khi user mới được đăng ký.
/// </summary>
public class UserRegisteredDomainEvent : IDomainEvent
{
    public ApplicationUser User { get; }
    public DateTime OccurredOn { get; }

    public UserRegisteredDomainEvent(ApplicationUser user)
    {
        User = user;
        OccurredOn = DateTime.UtcNow;
    }
}
