public Turnier()
 {
     id           = 9999;
     type         = SportArt.KEINE;
     turnierArt   = "undefined";
     mannschaften = new List <Mannschaft>();
 }
        public static SportArt asSportArt()
        {
            Random random = new Random();
            int    rand   = random.Next(1, 3);

            SportArt sa = (SportArt)rand;

            return(sa);
        }
        public Turnier setType(string s)
        {
            s = ApplicationContext.disarmHijacking(s);
            SportArt sa = SportArt.KEINE;

            sa = (SportArt)Enum.Parse(typeof(SportArt), s);

            type = sa;
            return(this);
        }
 public Turnier setType(SportArt s)
 {
     type = s; return(this);
 }