Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var editorial = new Editorial();

            var andrei = new Reader("Andrei");
            var marcel = new Reader("Marcel");
            var radu   = new Reader("Radu");

            editorial.AddSubscriber(andrei);
            editorial.AddSubscriber(marcel);
            editorial.AddSubscriber(radu);

            editorial.Publish(new("Real Madrid 3 - 1 Liverpool", "Hala Madrid", DateTime.Now));
        }