Ejemplo n.º 1
0
        public void Subscription(CarFactory carFactory)
        {
            if (_carFactories.Contains(carFactory))
            {
                throw new Exception("You already have a subscription to this company !");
            }

            AddCarCompany(carFactory);
            carFactory.AddClient(this);
        }
Ejemplo n.º 2
0
        public void Subscription(CarFactory carFactory)
        {
            if (_carFactory.Contains(carFactory))
            {
                throw new Exception("Already subscribe !");
            }

            AddCarCompany(carFactory);
            carFactory.AddClient(this);
        }