Example #1
0
File: Item.cs Project: spinakr/ting
 public void When(InventoryWasInitialized e)
 {
     if (Items is null)
     {
         Items = new List <Item>();
     }
 }
Example #2
0
File: Item.cs Project: spinakr/ting
        public void AddNewItem(string name, string fileName)
        {
            var @event1 = new InventoryWasInitialized();

            Append(@event1);
            var @event = new NewItemWasCreated(Guid.NewGuid(), name, fileName);

            Append(@event);
        }
Example #3
0
File: Item.cs Project: spinakr/ting
        internal void Init()
        {
            var @event1 = new InventoryWasInitialized();

            Append(@event1);
        }