public void Initialize(AdvertisementContentBuilder builder) { builder .WithAdvertisementDetails(this.GetDefaultAdvertisementDetails()) .WithAdvertiserId(this.GetDefaultAdvertiserId()) .WithAdvertisementType(AdvertisementType.Classic.ToString()) .WithJobSummary(this.GetDefaultJobSummary()) .WithJobTitle(this.GetDefaultJobTitle()) .WithLocationId(this.GetDefaultLocationId()) .WithLocationAreaId(this.GetDefaultLocationAreaId()) .WithSalaryMinimum(this.GetDefaultSalaryMinimum()) .WithSalaryMaximum(this.GetDefaultSalaryMaximum()) .WithSalaryType(this.GetDefaultSalaryType().ToString()) .WithSubclassificationId(this.GetDefaultSubclassificationId()) .WithWorkType(this.GetDefaultWorkType().ToString()) .WithRecruiterFullName(this.GetDefaultRecruiterFullName()) .WithRecruiterEmail(this.GetDefaultRecruiterEmail()); }
public void Initialize(AdvertisementContentBuilder builder) { this._minimumFieldsInitializer.Initialize(builder); builder .WithSearchJobTitle(this.GetDefaultSearchJobTitle()) .WithAgentId(this.GetDefaultAgentId()) .WithAdvertisementType(AdvertisementType.StandOut.ToString()) .WithSalaryDetails(this.GetDefaultSalaryDetails()) .WithContactName(this.GetDefaultContactName()) .WithContactEmail(this.GetDefaultContactEmail()) .WithContactPhone(this.GetDefaultContactPhone()) .WithVideoUrl(this.GetDefaultVideoUrl()) .WithVideoPosition(this.GetDefaultVideoPosition().ToString()) .WithApplicationEmail(this.GetDefaultApplicationEmail()) .WithApplicationFormUrl(this.GetDefaultApplicationFormUrl()) .WithEndApplicationUrl(this.GetDefaultEndApplicationUrl()) .WithScreenId(this.GetDefaultScreenId()) .WithJobReference(this.GetDefaultJobReference()) .WithAgentJobReference(this.GetDefaultAgentJobReference()) .WithTemplateId(this.GetDefaultTemplateId()) .WithTemplateItems( new KeyValuePair <object, object>(this.GetDefaultTemplateItemName(1), this.GetDefaultTemplateItemValue(1)), new KeyValuePair <object, object>(this.GetDefaultTemplateItemName(2), this.GetDefaultTemplateItemValue(2))) .WithStandoutLogoId(this.GetDefaultLogoId()) .WithStandoutBullets(this.GetDefaultStandoutBullet(1), this.GetDefaultStandoutBullet(2), this.GetDefaultStandoutBullet(3)) .WithAdditionalProperties(this.GetDefaultAdditionalPropertiesAsObjects()) .WithRecruiterTeamName(this.GetDefaultRecruiterTeamName()); if (_locationType == LocationType.UseGranularLocation) { builder .WithLocationId(null) .WithLocationAreaId(null) .WithGranularLocationCountry(this.GetDefaultGranularLocationCountry()) .WithGranularLocationState(this.GetDefaultGranularLocationState()) .WithGranularLocationCity(this.GetDefaultGranularLocationCity()) .WithGranularLocationPostCode(this.GetDefaultGranularLocationPostCode()); } }