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!"); }
public int Post(Nba param) { using (var conn = _databaseHelper.GetConnection()) { var sql = SqlCommand.Insert<Nba>(); var result = conn.Execute(sql,param); return result; } }
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; } }
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); }
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"); }