public ServiceDSimple(ServiceA serviceA, ServiceB serviceB, ServiceY serviceY) { if(serviceB == null) throw new ArgumentNullException("serviceB"); this.ServiceB = serviceB; this.ServiceY = serviceY; }
public ServiceDSimple(ServiceA serviceA, ServiceB serviceB, ServiceY serviceY) { if (serviceB == null) { throw new ArgumentNullException("serviceB"); } this.ServiceB = serviceB; this.ServiceY = serviceY; }
public ServiceC(ServiceA serviceA, ServiceB serviceB) { if (serviceA == null) { throw new ArgumentNullException("serviceA"); } if (serviceB == null) { throw new ArgumentNullException("serviceB"); } this.serviceA = serviceA; this.serviceB = serviceB; }