Example #1
0
        protected override void Execute(CodeActivityContext context)
        {
            if (this.State.Get(context) != null)
            {
                this.JobPosting.Get(context).Status = this.State.Get(context);
            }
            else
            {
                if (string.IsNullOrEmpty(this.JobPosting.Get(context).Status))
                {
                    this.JobPosting.Get(context).Status = "Waiting for Data";
                }
            }

            JobPostingRepository.Save(this.JobPosting.Get(context));
        }
Example #2
0
 public JobPostingService(MongoClient _db)
 {
     _jobPostingRepo = new JobPostingRepository(_db);
 }
 protected override void Execute(CodeActivityContext context)
 {
     JobPostingRepository.IncrementResumesCount(this.JobPostingId.Get(context));
 }
Example #4
0
 protected override void Execute(CodeActivityContext context)
 {
     JobPostingRepository.InsertResume(this.Resume.Get(context));
 }
Example #5
0
 public JobPostingRepositoryTest()
 {
     client = new MongoClient(MONGODB_TEST_CONNECTION_STRING);
     jpr    = new JobPostingRepository(client);
 }