Example #1
0
        protected TComponents GetBookableOpportunityReference(OpportunityType opportunityType, Uri id)
        {
            var components = IdTemplate.GetOpportunityBookableIdComponents(id);

            if (components.OpportunityType != opportunityType)
            {
                throw new ArgumentOutOfRangeException("Provided opportunityType does not match provided id");
            }
            return(components);
        }
Example #2
0
 protected Uri RenderOfferId(OpportunityType opportunityType, TComponents components)
 {
     return(IdTemplate.RenderOfferId(opportunityType, components));
 }
Example #3
0
 /// <summary>
 /// Use OpportunityType from components
 /// </summary>
 /// <param name="components"></param>
 /// <returns></returns>
 protected Uri RenderOpportunityId(TComponents components)
 {
     return(IdTemplate.RenderOpportunityId(components));
 }
Example #4
0
 /// <summary>
 /// Use OpportunityType from components
 /// </summary>
 /// <param name="components"></param>
 /// <returns></returns>
 protected Uri RenderOfferId(TComponents components)
 {
     return(IdTemplate.RenderOfferId(components));
 }
 /// <summary>
 /// Use OpportunityType from components
 /// </summary>
 /// <param name="components"></param>
 /// <returns></returns>
 protected string RenderOpportunityJsonLdType(TComponents components)
 {
     return(IdTemplate.RenderOpportunityJsonLdType(components));
 }