public void TestAddAthletes()
        {
            var athlete = new AthleteDto {
                Dni       = "55555554D",
                Name      = "Alejandro",
                Surname   = "Perez",
                BirthDate = new DateTime(2010, 09, 11),
                Gender    = AthleteDto.MALE
            };

            var service = new AthletesService();

            AthletesService.PrintAthletes(service.SelectAthleteTable());
        }
Example #2
0
        private void LoadData(string dni)
        {
            if (dni != null)
            {
                try {
                    var atleList = _athletesService.SelectAthleteTable();

                    _athlete = atleList.First(a => a.Dni.ToUpper().Equals(dni.ToUpper()));

                    PlaceData();

                    GetListCompetition();
                }
                catch (InvalidOperationException) { }
            }
        }