public SearchOrganisationController(IAuthenticationService owinWrapper,
                                     SearchOrganisationOrchestrator orchestrator,
                                     IAuthorizationService authorization,
                                     IMultiVariantTestingService multiVariantTestingService,
                                     ICookieStorageService <FlashMessageViewModel> flashMessage,
                                     IMapper mapper)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _orchestrator = orchestrator;
     _mapper       = mapper;
 }
コード例 #2
0
 public SearchOrganisationController(
     IAuthenticationService owinWrapper,
     SearchOrganisationOrchestrator orchestrator,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage,
     IMapper mapper,
     IMediator mediatr)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _orchestrator = orchestrator;
     _mapper       = mapper;
     _mediatr      = mediatr ?? throw new ArgumentNullException(nameof(mediatr));
 }
コード例 #3
0
        public void Arrange()
        {
            _mediator      = new Mock <IMediator>();
            _cookieService = new Mock <ICookieStorageService <EmployerAccountData> >();

            _mediator.Setup(x => x.SendAsync(It.IsAny <GetOrganisationsRequest>()))
            .ReturnsAsync(new GetOrganisationsResponse {
                Organisations = new PagedResponse <OrganisationName> {
                    Data = new List <OrganisationName>()
                }
            });

            _orchestrator = new SearchOrganisationOrchestrator(_mediator.Object, _cookieService.Object);
        }