Beispiel #1
0
        public void doesItHandleSpecialSymbols()
        {
            var r      = new TranslateUserInput("#leet#");
            var result = r.makeLeet();

            Assert.AreEqual("1337", result);
        }
Beispiel #2
0
        public void doesItHandleNumbers()
        {
            var r      = new TranslateUserInput("2leet4you");
            var result = r.makeLeet();

            Assert.AreEqual("1337Y0U", result);
        }
Beispiel #3
0
        public void doesItTranslate()
        {
            var r      = new TranslateUserInput("leet af");
            var result = r.makeLeet();

            Assert.AreEqual("1337 4F", result);
        }
        public static void Main()
        {
            Console.WriteLine(typeof(Program).Namespace);

            Console.WriteLine("Initializing service bus");

            XmlConfigurator.Configure();

            Bus.Initialize(
                sbc =>
            {
                sbc.UseMsmq(
                    mq =>
                {
                    mq.VerifyMsmqConfiguration();
                });

                sbc.ReceiveFrom(QueueLocations.ENDPOINT_PUBLISHER_QUEUE);

                sbc.UseLog4Net();
            });


            var  subscriberQueue = new Uri(QueueLocations.ENDPOINT_SUBSCRIBER_QUEUE);
            bool keepRunning     = true;

            while (keepRunning)
            {
                keepRunning = TranslateUserInput.IntoSendingMessages(subscriberQueue);
            }
        }
        public static void Main()
        {
            Console.WriteLine(typeof(Program).Namespace);

            Console.WriteLine("Initializing service bus");

            XmlConfigurator.Configure();

            Bus.Initialize(
                sbc =>
            {
                sbc.UseMsmq(
                    x =>
                {
                    x.UseMulticastSubscriptionClient();
                    x.VerifyMsmqConfiguration();
                });

                sbc.ReceiveFrom(QueueLocations.ENDPOINT_PUBLISHER_QUEUE);

                sbc.UseLog4Net();
            });


            bool keepRunning = true;

            while (keepRunning)
            {
                keepRunning = TranslateUserInput.IntoPublishingMessages();
            }
        }
Beispiel #6
0
        public static void Main()
        {
            Console.WriteLine(typeof(Program).Namespace);

            Console.WriteLine("Initializing service bus");

            XmlConfigurator.Configure();

            Bus.Initialize(
                sbc =>
            {
                sbc.UseControlBus();

                sbc.UseMsmq(
                    mq =>
                {
                    mq.VerifyMsmqConfiguration();
                    mq.UseSubscriptionService(QueueLocations.RUNTIME_SERVICES_SUBSCRIPTION_QUEUE);
                });

                sbc.ReceiveFrom(QueueLocations.RUNTIME_SERVICES_PUBLISHER_QUEUE);

                sbc.UseLog4Net();
            });

            bool keepRunning = true;

            while (keepRunning)
            {
                keepRunning = TranslateUserInput.IntoPublishingMessages();
            }
        }
        public static void Main()
        {
            Console.WriteLine(typeof(Program).Namespace);

            Console.WriteLine("Initializing service bus");

            XmlConfigurator.Configure();

            Bus.Initialize(
                sbc =>
            {
                sbc.UseMsmq(x => x.VerifyMsmqConfiguration());

                sbc.ReceiveFrom(QueueLocations.STATIC_ROUTING_PUBLISHER_QUEUE);

                var busConfig = new CustomBusServiceConfigurator(new StaticRoutingConfig());

                sbc.AddBusConfigurator(busConfig);

                sbc.UseLog4Net();
            });

            bool keepRunning = true;

            while (keepRunning)
            {
                keepRunning = TranslateUserInput.IntoPublishingMessages();
            }
        }