public RefreshLearnerCommandHandler(
     ILogger <RefreshLearnerCommandHandler> logger,
     IApprenticeshipIncentiveDomainRepository incentiveDomainRepository,
     ILearnerService learnerService,
     ILearnerDomainRepository learnerDomainRepository)
 {
     _logger = logger;
     _incentiveDomainRepository = incentiveDomainRepository;
     _learnerService            = learnerService;
     _learnerDomainRepository   = learnerDomainRepository;
 }
コード例 #2
0
        public override void Setup()
        {
            TimerSchedule  = Substitute.For <TimerSchedule>();
            CommonService  = Substitute.For <ICommonService>();
            Logger         = Substitute.For <ILogger <ILearnerService> >();
            LearnerService = Substitute.For <ILearnerService>();

            var mapperConfig = new MapperConfiguration(c => c.AddMaps(typeof(Startup).Assembly));

            Mapper = new AutoMapper.Mapper(mapperConfig);
            LearnerGenderFunction = new Functions.LearnerGender(CommonService, LearnerService);
        }
コード例 #3
0
 public LearnersController(ILearnerService learnerService,
                           IParentLearnerService parentLearnerService)
 {
     _learnerService       = learnerService;
     _parentLearnerService = parentLearnerService;
 }
コード例 #4
0
 public LearnersController(ILearnerService learnerService, AppDbContext context)
 {
     _learnerService = learnerService;
     _context        = context;
 }
コード例 #5
0
 public ParentLearnerService(IRepositoryWrapper repo, ILearnerService learnerService, IParentService parentService)
 {
     _repo           = repo;
     _learnerService = learnerService;
     _parentService  = parentService;
 }
コード例 #6
0
 public LearnerController(IMapper mapper, ILearnerService learnerService)
 {
     _mapper         = mapper;
     _learnerService = learnerService;
 }
コード例 #7
0
 public LearnerGender(ICommonService commonService, ILearnerService learnerService)
 {
     _commonService  = commonService;
     _learnerService = learnerService;
 }