public void Setup() { _waitListHelper = Substitute.For <IWaitListHelper>(); _volunteerRepository = Substitute.For <INonTechVolunteerRepository>(); _notificationService = Substitute.For <INotificationService>(); _expertiseRepository = Substitute.For <IExpertiseRepository>(); }
public void Setup() { _waitListHelper = Substitute.For<IWaitListHelper>(); _volunteerRepository = Substitute.For<INonTechVolunteerRepository>(); _notificationService = Substitute.For<INotificationService>(); _expertiseRepository = Substitute.For<IExpertiseRepository>(); }
// Public Methods public AddExpertiseViewModel(IExpertiseRepository repository, IKernel kernel) { _kernel = kernel; repos = repository; entity = _kernel.Get <IExpertiseEntity>(); setUpRelayCommands(); }
public NonTechVolunteerController(IWaitListHelper waitListHelper, INonTechVolunteerRepository volunteerRepository, IExpertiseRepository expertiseRepository, INotificationService notificationService) { _waitListHelper = waitListHelper; _expertiseRepository = expertiseRepository; _volunteerRepository = volunteerRepository; _notificationService = notificationService; }
// Public Methods public EditExpertiseViewModel(IExpertiseRepository repository, IKernel kernel) { repos = repository; entity = kernel.Get <IExpertiseEntity>(); loadExpertiseItems(); setUpRelayCommands(); FormState = UIState.View; }
/************************* ************************** ***** PUBLIC METHODS ***** ************************** *************************/ public ResumeCreatorViewModel( IResumeCreationService rcs, ILoggingService ls, IGeneralInfoRepository giRepository, IExperienceRepository experienceRepository, IExpertiseRepository expertiseRepository, IEducationRepository educationRepository, IPublicationsRepository publicationsRepository, IKernel kernel) { try { this.rcs = rcs; this.giRepos = giRepository; this.experienceRepos = experienceRepository; this.expertiseRepos = expertiseRepository; this.edRepos = educationRepository; this.pubRepos = publicationsRepository; this.ls = ls; this._kernel = kernel; SetUpRelayCommands(); var gie = giRepos.Get(Guid.Empty); FullName = gie.FullName; Email = gie.Email; Phone = gie.Phone; AddLine1 = gie.Add1; AddLine2 = gie.Add2; InExpertises = new ObservableCollection <IExpertiseEntity>(); OutExpertises = AllExpertises = new ObservableCollection <IExpertiseEntity>(expertiseRepos.GetAll()); RefreshJobs(); InEducations = new ObservableCollection <IEducationEntity>(); OutEducations = AllEducations = new ObservableCollection <IEducationEntity>(edRepos.GetAll()); InPublications = new ObservableCollection <IPublicationEntity>(); OutPublications = AllPublications = new ObservableCollection <IPublicationEntity>(pubRepos.GetAll()); UpdateDocumentPreview(); } catch (Exception e) { ls.Log(e, "Exception"); } }
private void reset() { repos = null; entity = null; allExpertiseEntities = null; }
// Public Methods public DeleteExpertiseViewModel(IExpertiseRepository repository) { repos = repository; setUpRelayCommands(); loadAllExpertises(); }
private void reset() { repos = null; entity = null; }
public ExpertiseService(IExpertiseRepository expertiseRepository, IUnitOfWork unitOfWork) { this.expertiseRepository = expertiseRepository; this.unitOfWork = unitOfWork; }