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());
        }
예제 #2
0
 public void GetMatchList()
 {
     var login = new Login("<username>", "<password>");
     var cal = new Calendar();
     var games = cal.GrabMatchList(login.DoLogin());
     var enumerable = games as Game[] ?? games.ToArray();
     var h = enumerable.First();
     Assert.AreEqual(9, enumerable.Count());
 }
예제 #3
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());
        }
예제 #4
0
 public void DoLogin()
 {
     var login = new Login("<username>", "<password>");
     Assert.IsNotNull(login.DoLogin());
 }