public void LoadGames(string userName, string password)
        {
            var login = new Login(userName, password);
            var cal = new Calendar();
            var games = cal.GrabMatchList(login.DoLogin());

            var informer = new Informer(new MySqlConnector(_connectionString), userName);
            informer.SendNotifications(games.ToList());
        }
Exemplo n.º 2
0
        public void TryInformer()
        {
            var login = new Login("<username>", "<password>");
            var cal = new Calendar();
            var games = cal.GrabMatchList(login.DoLogin());
            var enumerable1 = games as List<Game> ?? games.ToList();
            var enumerable = games as Game[] ?? enumerable1.ToArray();

            var inform = new Informer(new MySqlConnector(""), login.UserName);
            inform.SendNotifications(enumerable1.ToList());

            var h = enumerable.First();
            Assert.AreEqual(9, enumerable.Count());
        }