public HRSEmployeeRepositoryTest()
        {
            var config = new ConfigurationBuilder()
                         .AddJsonFile("integration.json")
                         .Build();

            var options = new IntegrationOptions()
            {
                HRS = config["Integration:HRS"],
                CAS = config["Integration:CAS"],
            };

            _configuration    = new Mock <IConfiguration>();
            _distributedCache = new Mock <IDistributedCache>();
            _configuration.Setup(configuration => configuration["Cache:Enabled"]).Returns("False");
            _repository = new HRSEmployeeRepository(Options.Create <IntegrationOptions>(options), _configuration.Object, _distributedCache.Object);
        }
Beispiel #2
0
        public TaskService(
            IUnitOfWork unitOfWork,
            ITaskRepository taskRepository,

            IHRSEmployeeRepository employeeRepository,

            IConfiguration configuration,
            IMapper mapper)
        {
            this.taskRepository     = taskRepository;
            this.employeeRepository = employeeRepository;

            this.configuration = configuration;

            this.mapper     = mapper;
            this.unitOfWork = unitOfWork;
        }
Beispiel #3
0
 public MovieService(IMovieRepository _movieRepository, IHRSEmployeeRepository employeeRepository, IMapper mapper)
 {
     this.movieRepository = _movieRepository;
     this.mapper          = mapper;
 }
Beispiel #4
0
 public ClaimsTransformer(HRSEmployeeRepository employeeRepository)
 {
     this.employeeRepository = employeeRepository;
 }
 public InitiativeService(IInitiativeRepository initiativeRepository, IHRSEmployeeRepository employeeRepository, IMapper mapper)
 {
     this.employeeRepository   = employeeRepository;
     this.initiativeRepository = initiativeRepository;
     this.mapper = mapper;
 }