public void TestGettingGamePrediction()
 {
     var msg = new PlayerGameProjectionMessage {Game = new NFLGame( "2014:01-A" )};
        var sut = new GetGamePrediction( msg );
     Assert.IsNotNull( msg.Prediction );
     Utility.Announce( msg.Prediction.PredictedScore() );
 }
 public void TestAllocationToAce()
 {
     var msg = new PlayerGameProjectionMessage {Game = new NFLGame( "2013:01-B" )};
     var sut = new GetGamePrediction( msg );
     Assert.IsNotNull( msg.Prediction );
     Utility.Announce( msg.Prediction.PredictedScore() );
     var sut2 = new PullMetricsFromPrediction( msg );
     Assert.IsNotNull( msg.Game.PlayerGameMetrics );
     Assert.AreEqual( 1, msg.Game.PlayerGameMetrics.Count );
 }
 public void TestASavingMetrics()
 {
     var msg = new PlayerGameProjectionMessage {Game = new NFLGame( "2013:01-B" )};
     var sut = new GetGamePrediction( msg );
     var sut2 = new PullMetricsFromPrediction( msg );
     var sut3 = new SavePlayerGameMetrics( msg );
     var dpgmDoa = new DbfPlayerGameMetricsDao();
     var pgmList = msg.Game.PlayerGameMetrics;
     var expectedPgm = pgmList.FirstOrDefault();
     var pgm = dpgmDoa.Get( expectedPgm.PlayerId, expectedPgm.GameKey );
     Assert.IsNotNull( pgm );
 }
 public void TestPullMetrics()
 {
     var msg = new PlayerGameProjectionMessage {Game = new NFLGame( "2016:01-N" )};
     var sut = new GetGamePrediction(msg);
     var sut2 = new PullMetricsFromPrediction(msg);
     Assert.IsNotNull(sut2);
 }
 public void TestVulture()
 {
     var msg = new PlayerGameProjectionMessage {Game = new NFLGame( "2013:04-I" ) {PlayerGameMetrics = new List<PlayerGameMetrics>()}};
     var sut = new GetGamePrediction( msg );
     Assert.IsNotNull( msg.Prediction );
     Utility.Announce( msg.Prediction.PredictedScore() );
     var sut2 = new PullMetricsFromPrediction( msg );
     Assert.IsNotNull( msg.Game.PlayerGameMetrics );
     Assert.IsTrue( msg.Game.PlayerGameMetrics.Count > 0 );
 }