Exemple #1
0
        public void IF_Message_THEN_RenderMessageFromFacade()
        {
            IMessage       oMessage = new ConsoleHelloWorldMessage();
            IMessageFacade oFacade  = new HelloWorldFacade(oMessage);

            Assert.AreEqual(oFacade.RenderMessage(), oMessage.Render());

            oMessage = new WebApplicationHelloWorldMessage();
            oFacade  = new HelloWorldFacade(oMessage);
            Assert.AreEqual(oFacade.RenderMessage(), oMessage.Render());

            oMessage = new WindowsServiceHelloWorldMessage();
            oFacade  = new HelloWorldFacade(oMessage);
            Assert.AreEqual(oFacade.RenderMessage(), oMessage.Render());
        }
Exemple #2
0
        public void IF_MessageExist_THEN_WebApplicationWorldMessage()
        {
            IMessage oMessage = new WebApplicationHelloWorldMessage();

            Assert.AreEqual(oMessage.Render(), "Hello World - Web Application");
        }