/// <summary> /// Initializes a new instance of the <see cref="ProductFilterGroupQuery"/> class. /// </summary> /// <param name="merchelloContext"> /// The merchello Context. /// </param> /// <param name="resolver"> /// The resolver. /// </param> internal ProductFilterGroupQuery(IMerchelloContext merchelloContext, EntityCollectionProviderResolver resolver) : base(merchelloContext.Services.EntityCollectionService, merchelloContext.Cache.RequestCache) { Ensure.ParameterNotNull(merchelloContext, "merchelloContext"); Ensure.ParameterNotNull(resolver, "resolver"); this.Initialize(merchelloContext, resolver); }
/// <summary> /// Initializes a new instance of the <see cref="ProductFilterGroupQuery"/> class. /// </summary> /// <param name="merchelloContext"> /// The merchello Context. /// </param> /// <param name="resolver"> /// The resolver. /// </param> internal ProductFilterGroupQuery(IMerchelloContext merchelloContext, EntityCollectionProviderResolver resolver) : base(merchelloContext.Services.EntityCollectionService, merchelloContext.Cache.RequestCache) { Ensure.ParameterNotNull(merchelloContext, "merchelloContext"); Ensure.ParameterNotNull(resolver, "resolver"); this.Initialize(merchelloContext, resolver); }
/// <summary> /// Initializes a new instance of the <see cref="EntityCollectionApiController"/> class. /// </summary> /// <param name="merchelloContext"> /// The merchello context. /// </param> /// <param name="umbracoContext"> /// The umbraco context. /// </param> public EntityCollectionApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext) : base(merchelloContext, umbracoContext) { Mandate.ParameterNotNull(merchelloContext, "merchelloContext"); _entityCollectionService = merchelloContext.Services.EntityCollectionService; _resolver = EntityCollectionProviderResolver.Current; _merchello = new MerchelloHelper(merchelloContext, false); this.Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="EntityCollectionApiController"/> class. /// </summary> /// <param name="merchelloContext"> /// The merchello context. /// </param> /// <param name="umbracoContext"> /// The umbraco context. /// </param> public EntityCollectionApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext) : base(merchelloContext, umbracoContext) { Mandate.ParameterNotNull(merchelloContext, "merchelloContext"); _entityCollectionService = merchelloContext.Services.EntityCollectionService; _resolver = EntityCollectionProviderResolver.Current; _merchello = new MerchelloHelper(merchelloContext, false); this.Initialize(); }