コード例 #1
0
        public AirportService(IEfDbSetWrapper <Airport> airportRepo, IAirTicketDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(airportRepo, "airportRepo").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.airportRepo = airportRepo;
            this.dbContext   = dbContext;
        }
コード例 #2
0
ファイル: FlightService.cs プロジェクト: TihomirTE/AirTickets
        public FlightService(IEfDbSetWrapper <Flight> flightRepo, IAirTicketDbContextSaveChanges dbContext)
        {
            Guard.WhenArgument(flightRepo, "flightRepo").IsNull().Throw();
            Guard.WhenArgument(dbContext, "dbContext").IsNull().Throw();

            this.flightRepo = flightRepo;
            this.dbContext  = dbContext;
        }