Example #1
0
        public string GetAllTourneys(UserInfo _data)
        {
            TourneyManager tm = new TourneyManager();
            TournamentList tl = tm.GetAllTourneys(_data.username);

            return(JsonConvert.SerializeObject(tl));
        }
        public void GetAllTourneysTest()
        {
            string         username = GetRandomAlphaNumeric();
            TourneyManager test     = new TourneyManager();
            TournamentList tl       = test.GetAllTourneys(username);

            Assert.IsNotNull(tl);
        }