Ejemplo n.º 1
0
        public override Scanner FactoryMethod()
        {
            MockScanner     ms  = new MockScanner();
            ResizingScanner rss = new ResizingScanner();

            rss.SetScanner(ms);
            return(rss);
        }
Ejemplo n.º 2
0
        public override Scanner FactoryMethod()
        {
            RealScanner     rs  = new RealScanner();
            ResizingScanner rss = new ResizingScanner();

            rss.SetScanner(rs);
            return(rss);
        }