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; }
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; }