public override void RenderAsHtml()
 {
     if (FullSeason)
     {
         YahooMaster.Calculate(TimeKeeper.Season);
         Logger.Info("  Generating Yahoo xml for full Season}");
     }
     else
     {
         Logger.Info(
             "  Generating Yahoo xml for Season {0} Week {1}",
             TimeKeeper.Season, TimeKeeper.Week);
         YahooMaster.Calculate(
             TimeKeeper.Season,
             TimeKeeper.PreviousWeek());
     }
     YahooMaster.Dump2Xml(Logger);
 }
示例#2
0
 public void TestGenerateYahooXmlForEntireSeason()
 {
     var m = new YahooMaster( "Yahoo", "YahooOutput.xml" );
      m.Calculate( "2015" );
      m.Dump2Xml();
 }
示例#3
0
 public void TestGenerateYahooXml()
 {
     var m = new YahooMaster( "Yahoo", "YahooOutput.xml" );
      m.Calculate( season: "2016", week: "09" );
      m.Dump2Xml();
 }
 public void TestGenYahooAllPositionsCurrentWeek()
 {
     var m = new YahooMaster( "Yahoo", "YahooOutput.xml" );
      m.Calculate( "2014", "09" );
      m.Dump2Xml();
      Assert.IsTrue( File.Exists( m.Filename ) );
      //TestAllPositionsBeastModeCurrentWeek();
      TestAllPositionsYahooCurrentWeek();
      //TestAllPositionsRantsCurrentWeek();
 }
示例#5
0
 public override void RenderFullAsHtml()
 {
     YahooMaster.Calculate(TimeKeeper.Season);
     YahooMaster.Dump2Xml(Logger);
 }