예제 #1
0
        public void Test_demo()
        {
            // Test iwth real subject
            DemoClient  client      = new DemoClient();
            RealSubject realSubject = new RealSubject();

            client.ClientCode(realSubject);

            // Test with proxy
            DemoProxy proxy = new DemoProxy(realSubject);

            client.ClientCode(proxy);
        }