public HomeController(ILogger <HomeController> logger)
        {
            _logger = logger;

            ICake ChocCake    = new ChocolateCake();
            ICake BrownieCake = new BrownieCake();

            Console.WriteLine(ChocCake.GetCake());
            Console.WriteLine(BrownieCake.GetCake());
        }
Пример #2
0
        static void Main(string[] args)
        {
            var chocolateCake = new ChocolateCake();

            chocolateCake.Make();
        }