Exemplo n.º 1
0
        public void AddProduct(IProduct video)
        {
            videos.Add(video);
            video.AddProducer(this);

            foreach (IConsumer abonnent in abonents)
            {
                abonnent.Update(video);
            }
        }