public void Handle(Inventory.Events.Renamed @event)
        {
            var view = BullShitDatabase.details[@event.AggregateId];

            view.Name    = @event.NewName;
            view.Version = @event.Version;
        }
Exemplo n.º 2
0
        public void Handle(Inventory.Events.Renamed @event)
        {
            var item = BullShitDatabase.list.Find(x => x.Id == @event.AggregateId);

            item.Name = @event.NewName;
        }