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

            this.ServiceB = serviceB;
            this.ServiceY = serviceY;
        }
Exemplo n.º 2
0
        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 ServiceDSimple(ServiceA serviceA, ServiceB serviceB, ServiceY serviceY)
        {
            if (serviceB == null)
            {
                throw new ArgumentNullException("serviceB");
            }

            this.ServiceB = serviceB;
            this.ServiceY = serviceY;
        }
Exemplo n.º 4
0
        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;
        }