private bool IsHydratedOfferIdMatched(string programId, string offerId, ExchangeConfigurationUnit sharedConfigurationUnit, ServicePlanConfiguration config) { string offerId2; if (!config.TryGetHydratedOfferId(programId, offerId, out offerId2)) { offerId2 = this.DataObject.OfferId; } return(sharedConfigurationUnit.OfferId.Equals(offerId2, StringComparison.OrdinalIgnoreCase)); }
private bool IsHydratedPilotOfferIdMatched(string programId, string offerId, ExchangeConfigurationUnit sharedConfigurationUnit, ServicePlanConfiguration config) { if (this.DataObject.IsStaticConfigurationShared) { string pilotOfferId; string dehydratedOfferId; string offerId2; if (!config.TryGetReverseHydratedOfferId(programId, offerId, out pilotOfferId) || !config.TryGetReversePilotOfferId(programId, pilotOfferId, out dehydratedOfferId) || !config.TryGetHydratedOfferId(programId, dehydratedOfferId, out offerId2)) { offerId2 = this.DataObject.OfferId; } return(sharedConfigurationUnit.OfferId.Equals(offerId2, StringComparison.OrdinalIgnoreCase)); } return(false); }