Example #1
0
 public IndexModel(IGeneralInfoRepository generalInfoRepository, ISkillRepository skillRepository, ICompanyRepository companyRepository, IReferenceRepository referenceRepository, ITechnologyRepository technologyRepository, IAptitudeRepository aptitudeRepository, IEmailService emailService, ICaptchaValidationService captchaValidationService)
 {
     this._generalInfoRepository    = generalInfoRepository;
     this._skillRepository          = skillRepository;
     this._companyRepository        = companyRepository;
     this._referenceRepository      = referenceRepository;
     this._technologyRepository     = technologyRepository;
     this._aptitudeRepository       = aptitudeRepository;
     this._emailService             = emailService;
     this._captchaValidationService = captchaValidationService;
 }
Example #2
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");
            }
        }
Example #3
0
        public static void InitializeInstances(ref IGeneralInfoRepository generalInfoRepository,
                                               ref IAptitudeRepository aptitudeRepository,
                                               ref ICompanyRepository companyRepository,
                                               ref IReferenceRepository referenceRepository,
                                               ref ISkillRepository skillRepository,
                                               ref ITechnologyRepository technologyRepository,
                                               ref IEmailService _emailService,
                                               ref ICaptchaValidationService _captchaValidationService)
        {
            string storageConnectionKey = Util.GetConfigVariable(STORAGECONNECTIONKEY, null);

            generalInfoRepository = new TableGeneralInfoRepository(new TableStorageConfig()
            {
                ConnectionString = storageConnectionKey
            });
            aptitudeRepository = new TableAptitudeRepository(new TableStorageConfig()
            {
                ConnectionString = storageConnectionKey
            });
            companyRepository = new TableCompanyRepository(new TableStorageConfig()
            {
                ConnectionString = storageConnectionKey
            });
            referenceRepository = new TableReferenceRepository(new TableStorageConfig()
            {
                ConnectionString = storageConnectionKey
            });
            skillRepository = new TableSkillRepository(new TableStorageConfig()
            {
                ConnectionString = storageConnectionKey
            });
            technologyRepository = new TableTechologyRepository(new TableStorageConfig()
            {
                ConnectionString = storageConnectionKey
            });

            // generalInfoRepository = new JSONGeneralInfoRepository(new JSONDatabaseConfig() { ConnectionString = storageConnectionKey });
            //aptitudeRepository = new JSONAptitudeRepository(new JSONDatabaseConfig() { ConnectionString = storageConnectionKey });
            //companyRepository = new JSONCompanyRepository(new JSONDatabaseConfig() { ConnectionString = storageConnectionKey });
            //referenceRepository = new JSONReferenceRepository(new JSONDatabaseConfig() { ConnectionString = storageConnectionKey });
            //skillRepository = new JSONSkillRepository(new JSONDatabaseConfig() { ConnectionString = storageConnectionKey });
            //technologyRepository = new JSONTechnologyRepository(new JSONDatabaseConfig() { ConnectionString = storageConnectionKey });

            _emailService             = new SendGridEmailService(Util.Deserialize <EmailSettings>(Util.GetConfigVariable("emailSettings", null)));
            _captchaValidationService = new CaptchaValidationService(Util.Deserialize <CaptchaSettings>(Util.GetConfigVariable("captchaSettings", null)));
        }
Example #4
0
 public EmailController(IEmailService emailService, IGeneralInfoRepository generalInfoRepository)
 {
     this._emailService          = emailService;
     this._generalInfoRepository = generalInfoRepository;
 }
Example #5
0
 public CumlativeClaimService(ICumlativeClaimDataRepository cumRepo,
                              IGeneralInfoRepository generalRepo)
 {
     this._cumlativeClaimDataRepository = cumRepo;
     this._generalInfoRepository        = generalRepo;
 }
Example #6
0
        public async static Task <IActionResult> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req, [Inject] IGeneralInfoRepository generalRepository, TraceWriter log)
        {
            log.Info("C# HTTP trigger function processed a request.");
            FreelanceInfoViewModel info = new FreelanceInfoViewModel()
            {
                GeneralInfo = await generalRepository.Get()
            };

            return((ActionResult) new OkObjectResult(info));
        }