Пример #1
0
        public void Update(Guid statusId)
        {
            var @event = new OrderStatusIdUpdatedEvent
            {
                AggregateId = Id,
                StatusId    = statusId
            };

            ApplyChange(@event);
        }
Пример #2
0
 public void Handle(OrderStatusIdUpdatedEvent @event)
 {
     Id       = @event.AggregateId;
     StatusId = @event.StatusId;
 }