Exemplo n.º 1
0
        public void Update(int price, string title)
        {
            var @event = new ShippingMethodUpdatedEvent
            {
                AggregateId = Id,
                Price       = price,
                Title       = title
            };

            ApplyChange(@event);
        }
Exemplo n.º 2
0
 public void Handle(ShippingMethodUpdatedEvent @event)
 {
     Id    = @event.AggregateId;
     Price = @event.Price;
     Title = @event.Title;
 }