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>();
 }
예제 #3
0
        // 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 NonTechVolunteerController(IWaitListHelper waitListHelper,
                                   INonTechVolunteerRepository volunteerRepository,
                                   IExpertiseRepository expertiseRepository,
                                   INotificationService notificationService)
 {
     _waitListHelper      = waitListHelper;
     _expertiseRepository = expertiseRepository;
     _volunteerRepository = volunteerRepository;
     _notificationService = notificationService;
 }
예제 #6
0
        // Public Methods

        public EditExpertiseViewModel(IExpertiseRepository repository, IKernel kernel)
        {
            repos = repository;

            entity = kernel.Get <IExpertiseEntity>();

            loadExpertiseItems();
            setUpRelayCommands();

            FormState = UIState.View;
        }
예제 #7
0
        /*************************
        **************************
        ***** 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");
            }
        }
예제 #8
0
 private void reset()
 {
     repos  = null;
     entity = null;
     allExpertiseEntities = null;
 }
예제 #9
0
        // Public Methods

        public DeleteExpertiseViewModel(IExpertiseRepository repository)
        {
            repos = repository;
            setUpRelayCommands();
            loadAllExpertises();
        }
예제 #10
0
 private void reset()
 {
     repos  = null;
     entity = null;
 }
 public ExpertiseService(IExpertiseRepository expertiseRepository, IUnitOfWork unitOfWork)
 {
     this.expertiseRepository = expertiseRepository;
     this.unitOfWork          = unitOfWork;
 }