public RegisterTradingEquipmentPresenter( IRegisterTradingEquipmentView view, ITradingEquipmentService tradingEquipmentService, ITradingEquipmentModelService tradingEquipmentModelService, IProviderService providerService, ILocationService locationService) { if (view == null) { throw new ArgumentNullException(nameof(view)); } if (tradingEquipmentService == null) { throw new ArgumentNullException(nameof(tradingEquipmentService)); } if (tradingEquipmentModelService == null) { throw new ArgumentNullException(nameof(tradingEquipmentModelService)); } if (providerService == null) { throw new ArgumentNullException(nameof(providerService)); } if (locationService == null) { throw new ArgumentNullException(nameof(locationService)); } _view = view; _view.Observer = this; _tradingEquipmentService = tradingEquipmentService; _tradingEquipmentModelService = tradingEquipmentModelService; _providerService = providerService; _locationService = locationService; }
public MoveTradingEquipmentPresenter( IMoveTradingEquipmentView view, ITradingEquipmentService tradingEquipmentService, ILocationService locationService) { if (view == null) { throw new ArgumentNullException(nameof(view)); } if (tradingEquipmentService == null) { throw new ArgumentNullException(nameof(tradingEquipmentService)); } if (locationService == null) { throw new ArgumentNullException(nameof(locationService)); } _view = view; _view.Observer = this; _tradingEquipmentService = tradingEquipmentService; _locationService = locationService; }