Пример #1
0
        static void Main(string[] args)
        {
            var twitterMessage  = new TwitterMessagingService();
            var facebookMessage = new FacebookMessagingService();
            var tinderMessage   = new TinderMessagingService();

            MessagingHelper.SayHelloAllServices(tinderMessage, facebookMessage, twitterMessage);
        }
Пример #2
0
        static void Main(string[] args)
        {
            var twitterMessagingService   = new TwitterMessagingService();
            var facebookMessangingService = new FacebookMessagingService();
            var linkedinMessagingService  = new LinkedInMessagingService();

            MessagingHelper.SayHelloAllServices(twitterMessagingService, facebookMessangingService, linkedinMessagingService);
        }