public EmployerService(IGetByIdStrategy getByIdStrategy, IGetByIdsStrategy getByIdsStrategy, IGetByEdsUrnStrategy getByEdsUrnStrategy, ISearchEmployersStrategy searchEmployersStrategy, ISaveEmployerStrategy saveEmployerStrategy, ISendEmployerLinksStrategy sendEmployerLinksStrategy)
 {
     _getByIdStrategy         = getByIdStrategy;
     _getByIdsStrategy        = getByIdsStrategy;
     _getByEdsUrnStrategy     = getByEdsUrnStrategy;
     _searchEmployersStrategy = searchEmployersStrategy;
     _saveEmployerStrategy    = saveEmployerStrategy;
     //TODO: temporary method. Remove after moving status checks to a higher tier
     _sendEmployerLinksStrategy = sendEmployerLinksStrategy;
 }
Example #2
0
 public void Setup()
 {
     _employerWriteRepository.Setup(r => r.Save(It.IsAny <Employer>())).Returns <Employer>(e => e);
     _strategy = new GetByEdsUrnStrategy(_employerReadRepository.Object, _employerWriteRepository.Object, _organisationService.Object, _addressLookupProvider.Object, _mapper.Object, new Mock <ILogService>().Object);
 }