public LearnerService(IMapper mapper, ILogger <ILearnerService> logger, ILearnerServiceApiClient learnerServiceApiClient, ILearnerRecordService learnerRecordService) { _mapper = mapper; _logger = logger; _learnerServiceApiClient = learnerServiceApiClient; _learnerRecordService = learnerRecordService; }
public override void Setup() { Logger = Substitute.For <ILogger <ILearnerService> >(); LearnerRecordService = Substitute.For <ILearnerRecordService>(); LearnerServiceApiClient = Substitute.For <ILearnerServiceApiClient>(); var mapperConfig = new MapperConfiguration(c => c.AddMaps(typeof(Startup).Assembly)); Mapper = new AutoMapper.Mapper(mapperConfig); Service = new Functions.Services.LearnerService(Mapper, Logger, LearnerServiceApiClient, LearnerRecordService); }
public TlevelHomeController(IHttpContextAccessor contextAccessor, ITokenService tokenService, IResultsAndCertificationInternalApiClient internalApiClient, ILearnerServiceApiClient learnerServiceApiClient, IPersonalLearningRecordApiClient personalLearningRecordApiClient, ResultsAndCertificationConfiguration config) { _httpContextAccessor = contextAccessor; _tokenService = tokenService; _internalApiClient = internalApiClient; _learnerServiceApiClient = learnerServiceApiClient; _personalLearningRecordApiClient = personalLearningRecordApiClient; _config = config; }