Esempio n. 1
0
        public void SetUp()
        {
            _connection = new GetOpenConnectionFromConnectionString(
                DatabaseConfigurationProvider.Instance.TargetConnectionString);

            _providerSiteReadRepository  = new ProviderSiteRepository(_connection, _mapper, _logger.Object, _configurationService.Object);
            _providerSiteWriteRepository = new ProviderSiteRepository(_connection, _mapper, _logger.Object, _configurationService.Object);
        }
Esempio n. 2
0
 public ProviderServiceBuilder()
 {
     _employerService                         = new Mock <IEmployerService>().Object;
     _providerReadRepository                  = new Mock <IProviderReadRepository>().Object;
     _providerWriteRepository                 = new Mock <IProviderWriteRepository>().Object;
     _providerSiteReadRepository              = new Mock <IProviderSiteReadRepository>().Object;
     _providerSiteWriteRepository             = new Mock <IProviderSiteWriteRepository>().Object;
     _vacancyOwnerRelationshipReadRepository  = new Mock <IVacancyOwnerRelationshipReadRepository>().Object;
     _vacancyOwnerRelationshipWriteRepository = new Mock <IVacancyOwnerRelationshipWriteRepository>().Object;
     _logService = new Mock <ILogService>().Object;
 }
 public ProviderService(IProviderReadRepository providerReadRepository,
                        IProviderSiteReadRepository providerSiteReadRepository,
                        IVacancyOwnerRelationshipReadRepository vacancyOwnerRelationshipReadRepository,
                        IVacancyOwnerRelationshipWriteRepository vacancyOwnerRelationshipWriteRepository,
                        ILogService logService, IEmployerService employerService, IProviderWriteRepository providerWriteRepository,
                        IProviderSiteWriteRepository providerSiteWriteRepository)
 {
     _providerReadRepository                  = providerReadRepository;
     _providerSiteReadRepository              = providerSiteReadRepository;
     _vacancyOwnerRelationshipReadRepository  = vacancyOwnerRelationshipReadRepository;
     _vacancyOwnerRelationshipWriteRepository = vacancyOwnerRelationshipWriteRepository;
     _logService                  = logService;
     _employerService             = employerService;
     _providerWriteRepository     = providerWriteRepository;
     _providerSiteWriteRepository = providerSiteWriteRepository;
 }