예제 #1
0
        private static void GenerateYahooXml()
        {
            var m = new YahooMaster("Yahoo", "YahooOutput.xml");

            m.Calculate(Utility.CurrentSeason(), Utility.CurrentWeek());
            m.Dump2Xml();
        }
예제 #2
0
        public void TestYahooMasterCalculating()
        {
            var m = new YahooMaster("Yahoo", "YahooOutput.xml");

            m.Calculate("2013", "06");
            m.Dump2Xml();
            Assert.IsTrue(File.Exists(m.Filename));
        }
예제 #3
0
        public void TestGenYahooAllPositionsCurrentWeek()
        {
            var m = new YahooMaster("Yahoo", "YahooOutput.xml");

            m.Calculate("2013", Utility.CurrentWeek());
            m.Dump2Xml();
            Assert.IsTrue(File.Exists(m.Filename));
            TestAllPositionsBeastModeCurrentWeek();
            TestAllPositionsYahooCurrentWeek();
            TestAllPositionsRantsCurrentWeek();
        }
예제 #4
0
        public void TestYahooMasterPersistence()
        {
            var m    = new YahooMaster("Yahoo", "YahooOutput.xml");
            var stat = new RosterLib.Models.YahooOutput
            {
                Season   = "2012",
                Week     = "01",
                PlayerId = "GRIFRO01",
                Opponent = "NO",
                Quantity = 30.0M
            };

            m.PutStat(stat);
            m.Dump2Xml();
            Assert.IsTrue(File.Exists(m.Filename), string.Format("{0} not found", m.Filename));
        }