Esempio n. 1
0
        public void Handle(SnackBought domainEvent)
        {
            var monitor = monitorRepository.GetMonitor();

            var operation = new BuyOperation(domainEvent.SlotPosition, domainEvent.SnackPileQuantityLeft, domainEvent.SnackName, domainEvent.DateTime);

            monitor.AddOperation(operation);
        }
Esempio n. 2
0
 public void AddOperation(BuyOperation buyOperation)
 {
     operations.Add(buyOperation);
 }