Exemplo n.º 1
0
        public GuestController(
            IGuestService guestService
            , IGuestItineararyRequestService requestService
            , IItineararyService itineraryService
            , IMapper mapper)
        {
            if (guestService == null)
            {
                throw new ArgumentNullException(nameof(guestService));
            }

            if (requestService == null)
            {
                throw new ArgumentNullException(nameof(requestService));
            }

            if (itineraryService == null)
            {
                throw new ArgumentNullException(nameof(itineraryService));
            }

            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }

            this.guestService      = guestService;
            this.requestService    = requestService;
            this.itinerarryService = itineraryService;
            this.mapper            = mapper;
        }
Exemplo n.º 2
0
        public ItineraryController(
            IItineararyService itinerarryService,
            IMapper mapper)
        {
            if (itinerarryService == null)
            {
                throw new ArgumentNullException(nameof(itinerarryService));
            }

            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }

            this.itinerarryService = itinerarryService;
            this.mapper            = mapper;
        }