Exemple #1
0
        public TicketController(IDmvDbHandler dmvDbHandler,
                                IBlobHandler blobHandler,
                                IEventHandler eventHandler)
        {
            _dmvDbHandler = dmvDbHandler ??
                            throw new ArgumentNullException(nameof(dmvDbHandler));

            _eventHandler = eventHandler ??
                            throw new ArgumentNullException(nameof(eventHandler));
        }
        public NotificationController(IDmvDbHandler dmvDbHandler,
                                      IBlobHandler blobHandler,
                                      IOwnerNotificationHandler ownerNotificationHandler,
                                      IEventHandler eventHandler)
        {
            _dmvDbHandler = dmvDbHandler ??
                            throw new ArgumentNullException(nameof(dmvDbHandler));

            _blobHandler = blobHandler ??
                           throw new ArgumentNullException(nameof(blobHandler));

            _ownerNotificationHandler = ownerNotificationHandler ??
                                        throw new ArgumentNullException(nameof(ownerNotificationHandler));

            _eventHandler = eventHandler ??
                            throw new ArgumentNullException(nameof(eventHandler));
        }