Exemple #1
0
 public void When(ItemLocationWasUpdated e)
 {
     Items.Single(x => x.ItemId == e.ItemId).Location = e.NewLocation;
 }
Exemple #2
0
        internal void UpdateItemLocation(Guid itemId, string newLocation)
        {
            var @event = new ItemLocationWasUpdated(itemId, newLocation);

            Append(@event);
        }