public CreateTemporaryItemCommandHandler(IItemRepository itemRepository, IStoreItemFactory storeItemFactory,
                                          IAvailabilityValidationService availabilityValidationService)
 {
     this.itemRepository   = itemRepository;
     this.storeItemFactory = storeItemFactory;
     this.availabilityValidationService = availabilityValidationService;
 }
コード例 #2
0
 public MakeTemporaryItemPermanentCommandHandler(IItemRepository itemRepository,
                                                 IItemCategoryValidationService itemCategoryValidationService,
                                                 IManufacturerValidationService manufacturerValidationService,
                                                 IAvailabilityValidationService availabilityValidationService)
 {
     this.itemRepository = itemRepository;
     this.itemCategoryValidationService = itemCategoryValidationService;
     this.manufacturerValidationService = manufacturerValidationService;
     this.availabilityValidationService = availabilityValidationService;
 }
コード例 #3
0
 public CreateItemCommandHandler(IItemCategoryValidationService itemCategoryValidationService,
                                 IManufacturerValidationService manufacturerValidationService,
                                 IAvailabilityValidationService availabilityValidationService,
                                 IItemRepository itemRepository, IStoreItemFactory storeItemFactory)
 {
     this.itemCategoryValidationService = itemCategoryValidationService;
     this.manufacturerValidationService = manufacturerValidationService;
     this.availabilityValidationService = availabilityValidationService;
     this.itemRepository   = itemRepository;
     this.storeItemFactory = storeItemFactory;
 }
コード例 #4
0
 public ModifyItemCommandHandler(IItemRepository itemRepository, IShoppingListRepository shoppingListRepository,
                                 ITransactionGenerator transactionGenerator, IItemCategoryValidationService itemCategoryValidationService,
                                 IManufacturerValidationService manufacturerValidationService,
                                 IAvailabilityValidationService availabilityValidationService)
 {
     this.itemRepository                = itemRepository;
     this.shoppingListRepository        = shoppingListRepository;
     this.transactionGenerator          = transactionGenerator;
     this.itemCategoryValidationService = itemCategoryValidationService;
     this.manufacturerValidationService = manufacturerValidationService;
     this.availabilityValidationService = availabilityValidationService;
 }