public void When(InventoryWasInitialized e) { if (Items is null) { Items = new List <Item>(); } }
public void AddNewItem(string name, string fileName) { var @event1 = new InventoryWasInitialized(); Append(@event1); var @event = new NewItemWasCreated(Guid.NewGuid(), name, fileName); Append(@event); }
internal void Init() { var @event1 = new InventoryWasInitialized(); Append(@event1); }