public CheckoutCartCommandHandler( ICartRepository cartRepository, IShipmentFactory shipmentFactory, ICurrentUserService currentUser, IRandomizer randomizer) { this.cartRepository = cartRepository; this.shipmentFactory = shipmentFactory; this.currentUser = currentUser; this.randomizer = randomizer; }
public Test(IShipmentFactory shipmentFactory) { _shipmentFactory = shipmentFactory; IShipmentService result = _shipmentFactory.CreateShipmentService(CargoFirms.ArasKargo); }