public void Handle(SnackBought domainEvent) { var monitor = monitorRepository.GetMonitor(); var operation = new BuyOperation(domainEvent.SlotPosition, domainEvent.SnackPileQuantityLeft, domainEvent.SnackName, domainEvent.DateTime); monitor.AddOperation(operation); }
public void AddOperation(BuyOperation buyOperation) { operations.Add(buyOperation); }