コード例 #1
0
 public CheckoutCartCommandHandler(
     ICartRepository cartRepository,
     IShipmentFactory shipmentFactory,
     ICurrentUserService currentUser,
     IRandomizer randomizer)
 {
     this.cartRepository  = cartRepository;
     this.shipmentFactory = shipmentFactory;
     this.currentUser     = currentUser;
     this.randomizer      = randomizer;
 }
コード例 #2
0
 public Test(IShipmentFactory shipmentFactory)
 {
     _shipmentFactory = shipmentFactory;
     IShipmentService result = _shipmentFactory.CreateShipmentService(CargoFirms.ArasKargo);
 }