예제 #1
0
 public SellableItemManager(CommerceCommander commander, IFindEntityPipeline findEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline, CreateCategoryCommand createCategoryCommand, ICreateSellableItemPipeline createSellableItemPipeline, EditSellableItemPipeline editSellableItemPipeline, AssociateSellableItemToParentCommand associateSellableItemToParentCommand, FindEntityCommand findEntityCommand, CreateSellableItemCommand createSellableItemCommand)
     : base(null)
 {
     this.commander                             = commander;
     this._findEntityPipeline                   = findEntityPipeline;
     this._createCategoryCommand                = createCategoryCommand;
     this._doesEntityExistPipeline              = doesEntityExistPipeline;
     this._createSellableItemPipeline           = createSellableItemPipeline;
     this._editSellableItemPipeline             = editSellableItemPipeline;
     this._associateSellableItemToParentCommand = associateSellableItemToParentCommand;
     this._findEntityCommand                    = findEntityCommand;
     this._createSellableItemCommand            = createSellableItemCommand;
 }
 /// <summary>
 /// c'tor
 /// </summary>
 /// <param name="findEntitiesInListCommand">findEntitiesInListCommand</param>
 public CommerceEntityService(
     CommerceCommander commerceCommander,
     PersistEntityCommand persistEntityCommand,
     DeleteEntityCommand deleteEntityCommand,
     FindEntityCommand findEntityCommand,
     AssociateCategoryToParentCommand associateCategoryToParentCommand,
     AssociateSellableItemToParentCommand associateSellableItemToParentCommand,
     FindEntitiesInListCommand findEntitiesInListCommand)
 {
     _findEntitiesInListCommand            = findEntitiesInListCommand;
     _commerceCommander                    = commerceCommander;
     _persistEntityCommand                 = persistEntityCommand;
     _deleteEntityCommand                  = deleteEntityCommand;
     _findEntityCommand                    = findEntityCommand;
     _associateCategoryToParentCommand     = associateCategoryToParentCommand;
     _associateSellableItemToParentCommand = associateSellableItemToParentCommand;
 }
 /// <summary>
 /// c'tor
 /// </summary>
 /// <param name="createSellableItemCommand">createSellableItemCommand</param>
 /// <param name="associateSellableItemToParentCommand">associateSellableItemToParentCommand</param>
 /// <param name="getSellableItemCommand">getSellableItemCommand</param>
 /// <param name="editSellableItemCommand">editSellableItemCommand</param>
 /// <param name="getSellableItemConnectCommand">GetSellableItemConnectCommand</param>
 public ProductImporter(
     CreateSellableItemCommand createSellableItemCommand,
     AssociateSellableItemToParentCommand associateSellableItemToParentCommand,
     GetSellableItemCommand getSellableItemCommand,
     EditSellableItemCommand editSellableItemCommand,
     GetSellableItemConnectCommand getSellableItemConnectCommand,
     GetEntityViewCommand getEntityViewCommand,
     DoActionCommand doActionCommand)
 {
     _createSellableItemCommand            = createSellableItemCommand;
     _associateSellableItemToParentCommand = associateSellableItemToParentCommand;
     _getSellableItemCommand        = getSellableItemCommand;
     _editSellableItemCommand       = editSellableItemCommand;
     _getSellableItemConnectCommand = getSellableItemConnectCommand;
     _getEntityViewCommand          = getEntityViewCommand;
     _doActionCommand = doActionCommand;
 }
 public AssociateSellableItemToParentBlock(AssociateSellableItemToParentCommand associateSellableItemToParent)
 {
     _associateSellableItemToParent = associateSellableItemToParent;
 }