public Consumer(IMyAggregateService allServices) { if (allServices == null) { throw new ArgumentNullException(paramName: nameof(allServices)); } AllServices = allServices; }
public Consumer(IMyAggregateService allServices) // using only one service, not 4 !!!!! { AllServices = allServices ?? throw new ArgumentNullException(nameof(allServices)); }
public SomeController( IMyAggregateService aggregateService) { _aggregateService = aggregateService; }
public Consumer(IMyAggregateService allServices) { this.allServices = allServices ?? throw new ArgumentNullException(nameof(allServices)); }