private void InitRecruitCardGroupFactory() { var recruitCardGroupByAdd = new RecruitCardGroup(_personalPhotoDirectoryPath); _recruitCardGroupFactory = new RecruitCardGroupFactory(_personalPhotoDirectoryPath, recruitCardGroupByAdd, _recruitImporter, _recruitInfoRepository); }
public RecruitCardGroupFactory(string personalPhotoDirectoryPath, RecruitCardGroup recruitCardGroupByAdd, IRecruitImporter recruitImporter, IRecruitInfoRepository recruitInfoRepository) { if (string.IsNullOrWhiteSpace(personalPhotoDirectoryPath)) { throw new ArgumentNullException(nameof(personalPhotoDirectoryPath)); } if (recruitCardGroupByAdd == null) { throw new ArgumentNullException(nameof(recruitCardGroupByAdd)); } if (recruitImporter == null) { throw new ArgumentNullException(nameof(recruitImporter)); } if (recruitInfoRepository == null) { throw new ArgumentNullException(nameof(recruitInfoRepository)); } _personalPhotoDirectoryPath = personalPhotoDirectoryPath; _recruitCardGroupByAdd = recruitCardGroupByAdd; _recruitImporter = recruitImporter; _recruitInfoRepository = recruitInfoRepository; }
public RecruitViewModel(IRecruitCardGroupFactory recruitCardGroupFactory, IParameterizedCommandAsync <SaveRecruitCommandParameters> saveParameterizedRecruitCommand, RecruitOperationEventArgs recruitOperationEventArgs, Action <string> notValidCallback) { if (recruitCardGroupFactory == null) { throw new ArgumentNullException(nameof(recruitCardGroupFactory)); } if (saveParameterizedRecruitCommand == null) { throw new ArgumentNullException(nameof(saveParameterizedRecruitCommand)); } if (recruitOperationEventArgs == null) { throw new ArgumentNullException(nameof(recruitOperationEventArgs)); } if (notValidCallback == null) { throw new ArgumentNullException(nameof(notValidCallback)); } _saveParameterizedRecruitCommand = saveParameterizedRecruitCommand; _recruitOperationEventArgs = recruitOperationEventArgs; _notValidCallback = notValidCallback; RecruitCardGroup = recruitCardGroupFactory.Create(_recruitOperationEventArgs); }
public RecruitInfoMapper(RecruitCardGroup recruitCardGroup) { if (recruitCardGroup == null) { throw new ArgumentNullException(nameof(recruitCardGroup)); } _serviceCard = recruitCardGroup.ServiceCard; _firstCardGroup = recruitCardGroup.FirstCardGroup; _secondCardGroup = recruitCardGroup.SecondCardGroup; _thirdCardGroup = recruitCardGroup.ThirdCardGroup; }
public SaveRecruitCommandParameters(RecruitOperationEventArgs recruitOperationEventArgs, RecruitCardGroup recruitCardGroup, IStateChanged stateChanged) : base(stateChanged) { if (recruitOperationEventArgs == null) { throw new ArgumentNullException(nameof(recruitOperationEventArgs)); } if (recruitCardGroup == null) { throw new ArgumentNullException(nameof(recruitCardGroup)); } RecruitOperationEventArgs = recruitOperationEventArgs; RecruitCardGroup = recruitCardGroup; }