protected IProviderUserMediator GetMediator()
        {
            var providerUserViewModelValidator = new ProviderUserViewModelValidator();
            var verifyEmailViewModelValidator  = new VerifyEmailViewModelValidator();

            return(new ProviderUserMediator(
                       MockProviderUserProvider.Object,
                       MockProviderProvider.Object,
                       MockAuthorizationErrorProvider.Object,
                       MockVacancyProvider.Object,
                       providerUserViewModelValidator,
                       verifyEmailViewModelValidator, MockProviderService.Object, Mapper.Object,
                       MockLogService.Object));
        }
Exemple #2
0
 public ProviderUserMediator(IProviderUserProvider providerUserProvider,
                             IProviderProvider providerProvider,
                             IAuthorizationErrorProvider authorizationErrorProvider,
                             IVacancyPostingProvider vacancyProvider,
                             ProviderUserViewModelValidator providerUserViewModelValidator,
                             VerifyEmailViewModelValidator verifyEmailViewModelValidator,
                             IProviderUserAccountService providerService, IMapper mapper,
                             ILogService logService)
 {
     _providerUserProvider           = providerUserProvider;
     _providerProvider               = providerProvider;
     _authorizationErrorProvider     = authorizationErrorProvider;
     _vacancyProvider                = vacancyProvider;
     _providerUserViewModelValidator = providerUserViewModelValidator;
     _verifyEmailViewModelValidator  = verifyEmailViewModelValidator;
     _providerService                = providerService;
     _mapper     = mapper;
     _logService = logService;
 }