public EditCourseRunController( IOptions <CourseServiceSettings> courseSearchSettings, HtmlEncoder htmlEncoder, ICourseService courseService, IVenueService venueService, IVenueSearchHelper venueSearchHelper) { if (courseSearchSettings == null) { throw new ArgumentNullException(nameof(courseSearchSettings)); } if (courseService == null) { throw new ArgumentNullException(nameof(courseService)); } if (venueService == null) { throw new ArgumentNullException(nameof(venueService)); } _courseService = courseService; _htmlEncoder = htmlEncoder; _venueService = venueService; _venueSearchHelper = venueSearchHelper; }
public VenueSearchController( ILogger <VenueSearchController> logger, IOptions <VenueServiceSettings> venueServiceSettings, IVenueService venueService, IVenueSearchHelper venueSearchHelper) { if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (venueServiceSettings == null) { throw new ArgumentNullException(nameof(venueServiceSettings)); } if (venueService == null) { throw new ArgumentNullException(nameof(venueService)); } _logger = logger; _venueServiceSettings = venueServiceSettings.Value; _venueService = venueService; _venueSearchHelper = venueSearchHelper; }
public ChooseVenue(IVenueSearchHelper venueSearchHelper, IVenueService venueService) { if (venueService == null) { throw new ArgumentNullException(nameof(venueService)); } _venueSearchHelper = venueSearchHelper; _venueService = venueService; }
public SelectVenue(IVenueSearchHelper venueSearchHelper, IVenueService venueService, IOptions <VenueServiceSettings> venueServiceSettings, IHttpContextAccessor contextAccessor) { Throw.IfNull(venueService, nameof(venueService)); Throw.IfNull(venueServiceSettings, nameof(venueServiceSettings)); _venueServiceSettings = venueServiceSettings.Value; _venueSearchHelper = venueSearchHelper; _venueService = venueService; _contextAccessor = contextAccessor; }
public LocationsController( IVenueSearchHelper venueSearchHelper, IVenueService venueService) { if (venueService == null) { throw new ArgumentNullException(nameof(venueService)); } _venueSearchHelper = venueSearchHelper; _venueService = venueService; }
public VenuesController( IAddressSearchService addressSearchService, IVenueSearchHelper venueSearchHelper, IVenueService venueService, ICourseService courseService, IApprenticeshipService apprenticeshipService, ISearchClient <Core.Search.Models.Onspd> searchClient) { _addressSearchService = addressSearchService ?? throw new ArgumentNullException(nameof(addressSearchService)); _venueSearchHelper = venueSearchHelper ?? throw new ArgumentNullException(nameof(venueSearchHelper)); _venueService = venueService ?? throw new ArgumentNullException(nameof(venueService)); _courseService = courseService ?? throw new ArgumentNullException(nameof(courseService)); _apprenticeshipService = apprenticeshipService ?? throw new ArgumentNullException(nameof(apprenticeshipService)); _searchClient = searchClient ?? throw new ArgumentNullException(nameof(searchClient)); }
public VenueSearchController( ILogger <VenueSearchController> logger, IOptions <VenueServiceSettings> venueServiceSettings, IVenueService venueService, IVenueSearchHelper venueSearchHelper, IHttpContextAccessor contextAccessor) { Throw.IfNull(logger, nameof(logger)); Throw.IfNull(venueServiceSettings, nameof(venueServiceSettings)); Throw.IfNull(venueService, nameof(venueService)); _logger = logger; _venueServiceSettings = venueServiceSettings.Value; _venueService = venueService; _venueSearchHelper = venueSearchHelper; _contextAccessor = contextAccessor; }
public CoursesController( ILogger <CoursesController> logger, IOptions <CourseServiceSettings> courseSearchSettings, IHttpContextAccessor contextAccessor, ICourseService courseService, IVenueSearchHelper venueSearchHelper, IVenueService venueService) { Throw.IfNull(logger, nameof(logger)); Throw.IfNull(courseSearchSettings, nameof(courseSearchSettings)); Throw.IfNull(contextAccessor, nameof(contextAccessor)); Throw.IfNull(courseService, nameof(courseService)); Throw.IfNull(venueService, nameof(venueService)); _logger = logger; _contextAccessor = contextAccessor; _courseService = courseService; _venueService = venueService; _venueSearchHelper = venueSearchHelper; }