/// <summary> Рабочий цикл </summary>
        public void WorkingCycle()
        {
            _cleaner.CleanCafe();
            _driver.GetProducts();

            _cooker.CookShaurma();
            _cashier.TakeMoney();

            _cooker.CookShaurma();
            _cashier.TakeMoney();

            _cooker.CookShaurma();
            _cashier.TakeMoney();

            _cooker.CookShaurma();
            _cashier.TakeMoney();

            _cooker.CookShaurma();
            _cashier.TakeMoney();

            _cleaner.CleanCafe();

            CountRevenue();
        }
示例#2
0
        /// <summary> Рабочий цикл </summary>
        public void WorkingCycle()
        {
            _cleaner.CleanCafe();
            GetProducts();

            CookShaurma();
            TakeMoney();

            CookShaurma();
            TakeMoney();

            CookShaurma();
            TakeMoney();

            CookShaurma();
            TakeMoney();

            CookShaurma();
            TakeMoney();

            _cleaner.CleanCafe();

            CountRevenue();
        }