示例#1
0
        public void Initialize <TAdvertisement>(AdvertisementModelBuilder <TAdvertisement> builder)
            where TAdvertisement : Advertisement, new()
        {
            this._minimumFieldsInitializer.Initialize(builder);

            builder
            .WithSearchJobTitle(this.GetDefaultSearchJobTitle())
            .WithAgentId(this.GetDefaultAgentId())
            .WithAdvertisementType(AdvertisementType.StandOut)
            .WithSalaryDetails(this.GetDefaultSalaryDetails())
            .WithContactName(this.GetDefaultContactName())
            .WithContactEmail(this.GetDefaultContactEmail())
            .WithContactPhone(this.GetDefaultContactPhone())
            .WithVideoUrl(this.GetDefaultVideoUrl())
            .WithVideoPosition(this.GetDefaultVideoPosition())
            .WithApplicationEmail(this.GetDefaultApplicationEmail())
            .WithApplicationFormUrl(this.GetDefaultApplicationFormUrl())
            .WithEndApplicationUrl(this.GetDefaultEndApplicationUrl())
            .WithScreenId(this.GetDefaultScreenId())
            .WithJobReference(this.GetDefaultJobReference())
            .WithAgentJobReference(this.GetDefaultAgentJobReference())
            .WithTemplateId(this.GetDefaultTemplateId())
            .WithTemplateItems(
                new TemplateItem
            {
                Name  = this.GetDefaultTemplateItemName(1),
                Value = this.GetDefaultTemplateItemValue(1)
            },
                new TemplateItem
            {
                Name  = this.GetDefaultTemplateItemName(2),
                Value = this.GetDefaultTemplateItemValue(2)
            })
            .WithStandoutLogoId(this.GetDefaultLogoId())
            .WithStandoutBullets(this.GetDefaultStandoutBullet(1), this.GetDefaultStandoutBullet(2),
                                 this.GetDefaultStandoutBullet(3))
            .WithAdditionalProperties(this.GetDefaultAdditionalProperties())
            .WithRecruiterTeamName(this.GetDefaultRecruiterTeamName());

            if (_locationType == LocationType.UseGranularLocation)
            {
                builder
                .WithLocationArea(null)
                .WithGranularLocationCountry(this.GetDefaultGranularLocationCountry())
                .WithGranularLocationState(this.GetDefaultGranularLocationState())
                .WithGranularLocationCity(this.GetDefaultGranularLocationCity())
                .WithGranularLocationPostCode(this.GetDefaultGranularLocationPostCode());
            }
        }
 public void Initialize <TAdvertisement>(AdvertisementModelBuilder <TAdvertisement> builder)
     where TAdvertisement : Advertisement, new()
 {
     builder
     .WithAdvertiserId(this.GetDefaultAdvertiserId())
     .WithAdvertisementType(AdvertisementType.Classic)
     .WithJobTitle(this.GetDefaultJobTitle())
     .WithLocationArea(this.GetDefaultLocationId(), this.GetDefaultLocationAreaId())
     .WithSubclassificationId(this.GetDefaultSubclassificationId())
     .WithWorkType(this.GetDefaultWorkType())
     .WithSalaryType(this.GetDefaultSalaryType())
     .WithSalaryMinimum(this.GetDefaultSalaryMinimum())
     .WithSalaryMaximum(this.GetDefaultSalaryMaximum())
     .WithJobSummary(this.GetDefaultJobSummary())
     .WithAdvertisementDetails(this.GetDefaultAdvertisementDetails())
     .WithRecruiterFullName(this.GetDefaultRecruiterFullName())
     .WithRecruiterEmail(this.GetDefaultRecruiterEmail());
 }