using MediatR;
using MyService.Domain.AggregatesModel.SampleAggregate;
namespace MyService.Domain.Events;
///
/// EN: Domain event raised when Sample status changes.
/// VI: Domain event được phát ra khi trạng thái Sample thay đổi.
///
public class SampleStatusChangedDomainEvent : INotification
{
///
/// EN: The sample ID.
/// VI: ID của sample.
///
public Guid SampleId { get; }
///
/// EN: Previous status before the change.
/// VI: Trạng thái trước khi thay đổi.
///
public SampleStatus PreviousStatus { get; }
///
/// EN: New status after the change.
/// VI: Trạng thái mới sau khi thay đổi.
///
public SampleStatus NewStatus { get; }
public SampleStatusChangedDomainEvent(
Guid sampleId,
SampleStatus previousStatus,
SampleStatus newStatus)
{
SampleId = sampleId;
PreviousStatus = previousStatus;
NewStatus = newStatus;
}
}