Example #1
0
        public TicketService(IUsitData usitData)
        {
            if (usitData == null)
            {
                throw new NullReferenceException("UsitData");
            }

            this.usitData = usitData;
        }
Example #2
0
        public CountryService(ILocationFactory locationFactory, IUsitData usitData)
        {
            if (usitData == null)
            {
                throw new NullReferenceException("UsitData");
            }

            if (locationFactory == null)
            {
                throw new NullReferenceException("LocationFactory");
            }

            this.usitData        = usitData;
            this.locationFactory = locationFactory;
        }
Example #3
0
        public UserService(IUsitData usitData, ITicketFactory ticketFactory)
        {
            if (usitData == null)
            {
                throw new NullReferenceException("UsitData");
            }

            if (ticketFactory == null)
            {
                throw new NullReferenceException("TicketFactory");
            }

            this.ticketFactory = ticketFactory;
            this.usitData      = usitData;
        }
Example #4
0
        public AirlineService(IUsitData usitData, IAirlineFactory airlineFactory)
        {
            if (usitData == null)
            {
                throw new NullReferenceException("UsitData");
            }

            if (airlineFactory == null)
            {
                throw new NullReferenceException("AirlineFactory");
            }

            this.usitData       = usitData;
            this.airlineFactory = airlineFactory;
        }
Example #5
0
        public FlightService(IMappedClassFactory mappedFlightFactory, IUsitData usitData)
        {
            if (usitData == null)
            {
                throw new NullReferenceException("UsitData");
            }


            if (mappedFlightFactory == null)
            {
                throw new NullReferenceException("MappedFactory");
            }

            this.usitData            = usitData;
            this.mappedFlightFactory = mappedFlightFactory;
        }