private void SetupOrchestratorMocks() { ContactQueryRepositoryMock = new Mock <IContactQueryRepository>(); _mockStringLocaliserBuilder = new MockStringLocaliserBuilder(); var ukPrnStringLocalizer = _mockStringLocaliserBuilder .WithKey(ResourceMessageName.InvalidUkprn) .WithKeyValue("100000000") .Build <UkPrnValidator>(); UkPrnValidator = new UkPrnValidator(ukPrnStringLocalizer.Object); //GetContactsOrchestratorLocaliserMock = _mockStringLocaliserBuilder // .WithKey(ResourceMessageName.NoAssesmentProviderFound) // .WithKeyValue("100000000") // .Build<GetContactsOrchestrator>(); //OrchestratorLoggerMock = new Mock<ILogger<GetContactsOrchestrator>>(); //_getContactsOrchestrator = new GetContactsOrchestrator( // ContactQueryRepositoryMock.Object, // OrchestratorLoggerMock.Object); OrganisationQueryRepositoryMock = new Mock <IOrganisationQueryRepository>(); SearchOrganisationForContactsValidatorLocaliserMock = new Mock <IStringLocalizer <SearchOrganisationForContactsValidator> >(); _searchOrganisationForContactsValidator = new SearchOrganisationForContactsValidator( OrganisationQueryRepositoryMock.Object, SearchOrganisationForContactsValidatorLocaliserMock.Object ); }
public ContactQueryController(IContactQueryRepository contactQueryRepository, SearchOrganisationForContactsValidator searchOrganisationForContactsValidator, IMediator mediator, ILogger <ContactQueryController> logger, IWebConfiguration config) { _contactQueryRepository = contactQueryRepository; _logger = logger; _config = config; _searchOrganisationForContactsValidator = searchOrganisationForContactsValidator; _mediator = mediator; }