Exemplo 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);
        }
Exemplo n.º 2
0
 public void AddOperation(BuyOperation buyOperation)
 {
     operations.Add(buyOperation);
 }