Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }