Ejemplo n.º 1
0
        public ContactService(IContactAuthenticationHandler authenticationHandler,IContactRepository contactRepository, 
            IContactSecondaryRepository secondaryContactRepository,
            IContactSynchroniser contactSynchroniser
            )
        {
            if (contactRepository == null)
            {
                throw new ArgumentNullException("contactRepository");
            }
            _contactRepository = contactRepository;
            if (secondaryContactRepository == null)
            {
                throw new ArgumentNullException("secondaryContactRepository");
            }
            _secondaryContactRepository = secondaryContactRepository;

            if (authenticationHandler == null)
            {
                throw new ArgumentNullException("authenticationHandler");
            }
            _authenticationHandler = authenticationHandler;
            if (contactSynchroniser == null)
            {
                throw new ArgumentNullException("contactSynchroniser");
            }
            _contactSynchroniser = contactSynchroniser;
        }
        public CpxDisplayOrderQueueController(IOrderQueueService orderQueueService, ILocationHandler locationHandler, IContactAuthenticationHandler authenticationHandler)
        {
            if (orderQueueService == null)
            {
                throw new ArgumentNullException("orderQueueService");
            }
            _orderQueueService = orderQueueService;
            if (locationHandler == null)
            {
                throw new ArgumentNullException("locationHandler");
            }
            _locationHandler = locationHandler;
            if (authenticationHandler == null) throw new ArgumentNullException("authenticationHandler");

            _authenticationHandler = authenticationHandler;
        }