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