Example #1
0
        public void Handle(ItemsRemovedFromInventory message)
        {
            InventoryItemDetailsDto d = GetDetailsItem(message.Id);

            d.CurrentCount -= message.Count;
            d.Version       = message.Version;
        }
Example #2
0
        public void Handle(ItemsCheckedInToInventory message)
        {
            InventoryItemDetailsDto d = GetDetailsItem(message.Id);

            d.CurrentCount += message.Count;
            d.Version       = message.Version;
        }
Example #3
0
        public void Handle(InventoryItemRenamed message)
        {
            InventoryItemDetailsDto d = GetDetailsItem(message.Id);

            d.Name    = message.NewName;
            d.Version = message.Version;
        }