コード例 #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;
        }
コード例 #3
0
        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;
        }
コード例 #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;
        }
コード例 #8
0
 public WhenAddedOrder_NotifyTable(ICallingService callingService)
 {
     _callingService = callingService;
 }
コード例 #9
0
 public CallWaiterHandler(ICallingService callingService, IUnitOfWork unitOfWork)
 {
     _callingService = callingService;
     _unitOfWork     = unitOfWork;
 }
コード例 #10
0
 public WhenAddedOrder_NotifyAllWaiters(ICallingService callingService)
 {
     _callingService = callingService;
 }
 public WhenAddedOrder_SendOrderIdToTable(ICallingService callingService)
 {
     _callingService = callingService;
 }