Beispiel #1
0
        public WhenOrderItemStateChanged_NotifyTable(ICallingService callingService)
        {
            if (callingService == null)
            {
                throw new ArgumentNullException(nameof(callingService));
            }

            _callingService = callingService;
        }
        public WhenAcceptedOrder_SendInfoToOtherWaiters(ICallingService callingService)
        {
            if (callingService == null)
            {
                throw new ArgumentNullException("callingService");
            }

            _callingService = callingService;
        }
        public WhenAcceptedOrder_NotifyTable(ICallingService callingService)
        {
            if (callingService == null)
            {
                throw new ArgumentNullException(nameof(callingService));
            }

            _callingService = callingService;
        }
        public WhenWaiterLoggedIn_SendAwaitingOrders(ICallingService callingService, IUnitOfWork unitOfWork)
        {
            if (callingService == null)
            {
                throw new ArgumentNullException(nameof(callingService));
            }
            if (unitOfWork == null)
            {
                throw new ArgumentNullException(nameof(unitOfWork));
            }

            _callingService = callingService;
            _unitOfWork     = unitOfWork;
        }
        public WhenReservationOrderScheduled_LockTable(ICallingService callingService, IUnitOfWork unitOfWork)
        {
            if (callingService == null)
            {
                throw new ArgumentNullException(nameof(callingService));
            }
            if (unitOfWork == null)
            {
                throw new ArgumentNullException(nameof(unitOfWork));
            }

            _callingService = callingService;
            _unitOfWork     = unitOfWork;
        }
        public WhenAddedMoreItems_SendUpdatedOrderInfo(ICallingService callingService, IUnitOfWork unitOfWork)
        {
            if (callingService == null)
            {
                throw new ArgumentNullException("callingService");
            }
            if (unitOfWork == null)
            {
                throw new ArgumentNullException("unitOfWork");
            }

            _callingService = callingService;
            _unitOfWork     = unitOfWork;
        }
Beispiel #7
0
        public WhenAcceptedOrder_SendOrderInfo(IUnitOfWork unitOfWork, ICallingService callingService)
        {
            if (unitOfWork == null)
            {
                throw new ArgumentNullException(nameof(unitOfWork));
            }
            if (callingService == null)
            {
                throw new ArgumentNullException(nameof(callingService));
            }

            _unitOfWork     = unitOfWork;
            _callingService = callingService;
        }
 public WhenAddedOrder_NotifyTable(ICallingService callingService)
 {
     _callingService = callingService;
 }
Beispiel #9
0
 public CallWaiterHandler(ICallingService callingService, IUnitOfWork unitOfWork)
 {
     _callingService = callingService;
     _unitOfWork     = unitOfWork;
 }
Beispiel #10
0
 public WhenAddedOrder_NotifyAllWaiters(ICallingService callingService)
 {
     _callingService = callingService;
 }
 public WhenAddedOrder_SendOrderIdToTable(ICallingService callingService)
 {
     _callingService = callingService;
 }