Ejemplo n.º 1
0
        public void GetGroupsTest()
        {
            GroupOperations groupOperations = new GroupOperations();

            groupOperations.GetGroups();
            groupOperations.GetGroupById(0);
            groupOperations.AddGroup(new Models.MGroup());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Выполнение операций по рабработе со студентами и группами
        /// </summary>
        private void PerformOperations()
        {
            switch ((Actions)_chosedActions)
            {
            case Actions.Add:
                GroupOperations.AddGroup(_input, _school);
                isAbleToBack = true;
                break;

            case Actions.Print:
                GroupOperations.PrintGroups(_school);
                isAbleToBack = true;
                break;

            case Actions.Remove:
                GroupOperations.RemoveGroup(_input, _school);
                isAbleToBack = true;
                break;

            case Actions.Sort:
                Console.WriteLine("Операция не поддерживается!");
                isAbleToBack = true;
                break;

            case Actions.Find:
                GroupOperations.FindGroup(_input, _school);
                isAbleToBack = true;
                break;

            case Actions.Quit:
                _menu.CallMenu();
                break;

            default:
                Console.WriteLine("Опять ты брешишь...");
                isAbleToBack = false;
                break;
            }
        }