Ejemplo n.º 1
0
        public override void Run()
        {
            var logger = new Logger();

            var app = new WebService(
                new Authenticator(
                    new Logger(),
                    new ErrorHandler(
                        logger
                    ),
                    new Database(
                        new Logger(),
                        new ErrorHandler(
                            logger
                        )
                    )
                ),
                new StockQuote(
                    new Logger(),
                    new ErrorHandler(
                        logger
                    ),
                    new Database(
                        new Logger(),
                        new ErrorHandler(
                            logger
                        )
                    )
                )
            );

            app.Execute();
        }
Ejemplo n.º 2
0
        public override void Run()
        {
            var app = new WebService(authenticator, stockQuote);

            app.Execute();
        }