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); }
public LearnerVerificationAndLearningEvents(ICommonService commonService, IPersonalLearningRecordService personalLearningRecordService) { _commonService = commonService; _personalLearningRecordService = personalLearningRecordService; }