public override void Setup()
        {
            TimerSchedule = Substitute.For <TimerSchedule>();
            CommonService = Substitute.For <ICommonService>();
            Logger        = Substitute.For <ILogger <IPersonalLearningRecordService> >();
            PersonalLearningRecordService = Substitute.For <IPersonalLearningRecordService>();

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

            Mapper = new AutoMapper.Mapper(mapperConfig);
            LearningEventsFunction = new Functions.LearnerVerificationAndLearningEvents(CommonService, PersonalLearningRecordService);
        }
Beispiel #2
0
 public LearnerVerificationAndLearningEvents(ICommonService commonService, IPersonalLearningRecordService personalLearningRecordService)
 {
     _commonService = commonService;
     _personalLearningRecordService = personalLearningRecordService;
 }