示例#1
0
 public CreateAndUpdateCategoriesBlock(IGetCategoryPipeline getCategoryPipeline,
                                       ICreateCategoryPipeline createCategoryPipeline, IFindEntityPipeline findEntityPipeline,
                                       IAssociateCategoryToParentPipeline associateCategoryToParentPipeline,
                                       IPersistEntityPipeline persistEntityPipeline, IDoesEntityExistPipeline doesEntityExistPipeline)
 {
     _getCategoryPipeline               = getCategoryPipeline;
     _createCategoryPipeline            = createCategoryPipeline;
     _findEntityPipeline                = findEntityPipeline;
     _associateCategoryToParentPipeline = associateCategoryToParentPipeline;
     _persistEntityPipeline             = persistEntityPipeline;
     _doesEntityExistPipeline           = doesEntityExistPipeline;
 }
示例#2
0
 public GetOrCreateCategoryBlock(IDoesEntityExistPipeline doesEntityExistPipeline, IGetCategoryPipeline getCategoryPipeline, ICreateCategoryPipeline createCategoryPipeline)
 {
     _doesEntityExistPipeline = doesEntityExistPipeline;
     _getCategoryPipeline     = getCategoryPipeline;
     _createCategoryPipeline  = createCategoryPipeline;
 }