Example #1
0
 public EditYourDetailsController(IOptions <CompositeSettings> compositeSettings, IAuthService authService,
                                  IAddressSearchService addressSearchService, IDssReader dssReader, IDssWriter dssWriter, IDocumentService <CmsApiSharedContentModel> documentService, IConfiguration config)
     : base(compositeSettings, authService, documentService, config)
 {
     _addressSearchService = addressSearchService;
     _dssReader            = dssReader;
     _dssWriter            = dssWriter;
 }
 public static AddressResult Search(IWin32Window parent, IAddressSearchService addressSearchService = null)
 {
     using (var form = new AddressSearchForm(addressSearchService))
     {
         var result = form.ShowDialog(parent);
         return(result == DialogResult.OK ? form.AddressResult : AddressResult.Empty());
     }
 }
        public AddressSearchForm(IAddressSearchService addressSearchService)
        {
            _addressSearchService = addressSearchService ?? AddressSearchServiceImpl.Current;

            InitializeComponent();

            AddressResult = AddressResult.Empty();
        }
 public Handler(
     IAddressSearchService addressSearchService,
     ISearchClient <Onspd> onspdSearchClient,
     JourneyInstanceProvider journeyInstanceProvider)
 {
     _addressSearchService    = addressSearchService;
     _onspdSearchClient       = onspdSearchClient;
     _journeyInstanceProvider = journeyInstanceProvider;
 }
Example #5
0
 public PostcodeLookupController(
     ILogger <PostcodeLookupController> logger,
     IAddressSearchService addressSearchService,
     IVenueService venueService)
 {
     _logger = logger;
     _addressSearchService = addressSearchService;
     _venueService         = venueService;
 }
Example #6
0
 public Handler(
     IAddressSearchService addressSearchService,
     ISqlQueryDispatcher sqlQueryDispatcher,
     JourneyInstanceProvider journeyInstanceProvider)
 {
     _addressSearchService    = addressSearchService;
     _sqlQueryDispatcher      = sqlQueryDispatcher;
     _journeyInstanceProvider = journeyInstanceProvider;
 }
 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));
 }
Example #8
0
 public SearchProvider(ILocationSearchService locationSearchService,
                       IVacancySearchService <ApprenticeshipSearchResponse, ApprenticeshipVacancyDetail, ApprenticeshipSearchParameters> apprenticeshipSearchService,
                       IVacancySearchService <TraineeshipSearchResponse, TraineeshipVacancyDetail, TraineeshipSearchParameters> traineeshipSearchService,
                       IAddressSearchService addressSearchService,
                       IMapper apprenticeshipSearchMapper,
                       IMapper traineeshipSearchMapper, ILogService logger)
 {
     _locationSearchService       = locationSearchService;
     _apprenticeshipSearchService = apprenticeshipSearchService;
     _traineeshipSearchService    = traineeshipSearchService;
     _addressSearchService        = addressSearchService;
     _apprenticeshipSearchMapper  = apprenticeshipSearchMapper;
     _traineeshipSearchMapper     = traineeshipSearchMapper;
     _logger = logger;
 }
        public void Init()
        {
            _documentService = Substitute.For <IDocumentService <CmsApiSharedContentModel> >();
            var inMemorySettings = new Dictionary <string, string> {
                { Constants.SharedContentGuidConfig, Guid.NewGuid().ToString() }
            };

            _config = new ConfigurationBuilder()
                      .AddInMemoryCollection(inMemorySettings)
                      .Build();

            _compositeSettings    = Options.Create(new CompositeSettings());
            _authService          = Substitute.For <IAuthService>();
            _addressSearchService = Substitute.For <IAddressSearchService>();
            _dssWriter            = Substitute.For <IDssWriter>();
            _dssReader            = Substitute.For <IDssReader>();
        }
Example #10
0
 public AddressResult Search(IWin32Window parent, IAddressSearchService addressSearchService = null)
 {
     return(AddressSearchForm.Search(parent, addressSearchService));
 }
Example #11
0
 public LoggingAddressSearchService(IAddressSearchService parent)
 {
     _parent = parent;
 }
Example #12
0
 public LocationsProvider(IAddressSearchService addressSearchService)
 {
     _addressSearchService = addressSearchService;
 }