public void Update(int price, string title) { var @event = new ShippingMethodUpdatedEvent { AggregateId = Id, Price = price, Title = title }; ApplyChange(@event); }
public void Handle(ShippingMethodUpdatedEvent @event) { Id = @event.AggregateId; Price = @event.Price; Title = @event.Title; }