Ejemplo n.º 1
0
        public void Execute()
        {
            Output.WriteTitle("Get teams");
            DisplayTeams();

            var team = new GroupDisplayModel()
            {
                Name = Guid.NewGuid().ToString()
            };

            Output.WriteTitle("Add new team");
            _service.CreatePickupRound(team);
            DisplayTeams();

            Output.WriteTitle("Update team name");
            team.Name += "zzzz";
            _service.UpdateTeam(team);
            DisplayTeams();

            Output.WriteTitle("Delete team");
            _service.Remove(team);
            DisplayTeams();
        }
        public void Execute()
        {
            Output.WriteTitle("Get pickup rounds");
            DisplayCategories();

            var pickup = new GroupDisplayModel()
            {
                Name = Guid.NewGuid().ToString()
            };

            Output.WriteTitle("Add new  pickup round");
            _service.CreatePickupRound(pickup);
            DisplayCategories();

            Output.WriteTitle("Update  pickup round name");
            pickup.Name += "zzzz";
            _service.UpdateTeam(pickup);
            DisplayCategories();

            Output.WriteTitle("Delete  pickup rounds");
            _service.Remove(pickup);
            DisplayCategories();
        }