Exemplo n.º 1
0
 public void TestYahooScorerOnAPlayer()
 {
     var w = new NFLWeek( 2014, 8 );
      var scorer = new YahooScorer( w );
      var plyr = new NFLPlayer( "LACYED01" );
      var score = scorer.RatePlayer( plyr, w );
      Assert.IsTrue( score == 17.0M );
      var gameKey = w.GameCodeFor( plyr.TeamCode );
      var msg = plyr.MetricsOut(gameKey);
      Console.WriteLine( msg );
 }
Exemplo n.º 2
0
 public void TestYahooScorerOnBeckham()
 {
     var w = new NFLWeek(2015, 9);
      var scorer = new YahooScorer(w);
      var plyr = new NFLPlayer("BECKOD01");
      var score = scorer.RatePlayer(plyr, w);
      Assert.IsTrue(score > 0.0M);
      var gameKey = w.GameCodeFor(plyr.TeamCode);
      var msg = plyr.MetricsOut(gameKey);
      Console.WriteLine(msg);
 }