Example #1
0
 public void Test1()
 {
     Console.WriteLine("Testing NbaCup");
     testing(Nba.NbaCup(resultSheet3, "Boston Celtics"),
             "Boston Celtics:W=4;D=0;L=0;Scored=403;Conceded=350;Points=12");
     // testing(Nba.NbaCup(resultSheet3, "Boston Celt"),
     //         "Boston Celt:This team didn't play!");
 }
Example #2
0
 public int Post(Nba param)
 {
     using (var conn = _databaseHelper.GetConnection())
     {
         var sql = SqlCommand.Insert<Nba>();
         var result = conn.Execute(sql,param);
         return result;
     }
 }
Example #3
0
 public int Put(Nba param)
 {
     using (var conn = _databaseHelper.GetConnection())
     {
         var sql = SqlCommand.Update<Nba>(new { param.Name });
         var result = conn.Execute(sql, param);
         return result;
     }
 }
Example #4
0
        public void TestExplode(string t1, int s1, string t2, int s2)
        {
            var x = Nba.Explode($"{t1} {s1} {t2} {s2}");

            x.Team1.Should().Be(t1);
            x.Team2.Should().Be(t2);
            x.Score1.Should().Be(s1);
            x.Score2.Should().Be(s2);
        }
Example #5
0
 static void Main(string[] args)
 {
     Console.WriteLine("Hello World!");
     //var res = Nba.NbaCup(resultSheet1, "Boston Celtics");
     var res = Nba.Explode("Los Angeles Clippers 104 Dallas Mavericks 88");
 }