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