public void StreamHitters_LastWeek()
        {
            //  lets us see how good a predictor is "Streamers of the Week"
            string[] streamers = new string[]
            {
                "Gregory Polanco",
                "Brendan Rodgers",
                "Adam Frazier",
                "Alex Verdugo",
                "Christian Walker",
                "Mitch Moreland",
                "Jarrod Dyson"
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                streamers,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "Streamers-Actual",
                    K_CurrentWeek),
                IncludePriorWeek = false
            };

            sut.Execute();
        }
        public void StreamHitters_Projected()
        {
            string[] streamers = new string[]
            {
                "Gregory Polanco",
                "Brendan Rodgers",
                "Adam Frazier",
                "Alex Verdugo",
                "Christian Walker",
                "Mitch Moreland",
                "Jarrod Dyson"
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                streamers,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "Streamers",
                    K_CurrentWeek),
                IncludePriorWeek = true
            };

            sut.Execute();
        }
        public void HittingProspects()
        {
            string[] prospects = new string[]
            {
                "Marwin Gonzalez",
                "Robinson Chirinos",
                "Louis Voit",
                "Brandon Lowe",
                "Jay Bruce",
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                prospects,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "Prospects",
                    K_CurrentWeek),
                IncludePriorWeek = true
            };

            sut.Execute();
        }
        public void TheOutfielders()
        {
            string[] outfielders = new string[]
            {
                "Mike Trout",
                "Christian Yelich",
                "Cody Bellinger",
                "Mookie Betts",
                "J D Martinez",
                "Ronald Acuna Jr.",
                "Bryce Harper",
                "Whit Merrifield",
                "Rhys Hoskins",
                "Giancarlo Stanton",
                "George Springer",
                "Marcell Ozuna",
                "Charlie Blackmon",
                "Andrew Benintendi",
                "Juan Soto",
                "Aaron Judge",
                "Kris Bryant",
                "Khris Davis",
                "Victor Robles",
                "Eddie Rosario",
                "Starling Marte",
                "Joey Gallo",
                "Thomas Pham",
                "Lorenzo Cain",
                "Mitch Haniger",
                "Austin Meadows",
                "Michael Brantley",
                "Wil Myers",
                "Michael Conforto",
                "Andrew McCutchen",
                "Nicholas Castellanos",
                "Yasiel Puig",
                "Franmil Reyes",
                "Dee Gordon",
                "Shin-Soo Choo",
                "Justin Upton",
                "David Peralta",
                "Domingo Santana",
                "David Dahl",
                "Eloy Jimenez"
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                outfielders,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "Outfielders",
                    K_CurrentWeek),
                IncludePriorWeek = false
            };

            sut.Execute();
        }
        public void ExHitters_ForTheWeek()
        {
            string[] playersDropped = new string[]
            {
                "Franmil Reyes",
                "Joc Pederson",
                "Adam Jones",
                "Gregory Polanco",
                "Robinson Chirinos",
                "Brandon Lowe",
                "Dansby Swanson",
                "Enrique Hernandez",
                "Ryon Healy",
                "Brandon Lowe",
                "Shin-Soo Choo",
                "Niko Goodrum",
                "Kolten Wong",
                "Maikel Franco",
                "Jonathan Davis",
                "Ryan McMahon",
                "Rafael Devers",
                "Coery Dickerson",
                "Michael Brantley",
                "Nomar Mazara",
                "Eric Hosmer",
                "Jonathan Villar",
                "Francisco Cervelli",
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                playersDropped,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "CA-EX-Hitters",
                    K_CurrentWeek),
                IncludePriorWeek = true
            };

            sut.Execute();
        }
        public void TheCatchers()
        {
            string[] prospects = new string[]
            {
                "Jonathon Lucroy",                  //  LAA
                "Mike Zunino",                      //  TB
                "Danny Jansen",                     //  Tor
                "Josh Phegley",                     //  Oak
                "Robinson Chirinos",                //  Hou
                "Austin Hedges",                    //  SD
                "Christian Vazquez",                //  Bos
                "James McCann",                     //  CwS
                "Willians Astudillo",               // MT
                "Yan Gomes",                        // Wsh
                "Wellington Castillo",              // ChW
                "Jason Castro",                     // MT
                "Brian McCann",                     // Atl
                "Isiah Kiner-Falefa",               // Tex
                "Kurt Suzuki",                      // Wsh
                "Tyler Flowers",                    // Atl
                "Tony Wolters",                     //  Col
                "Matt Wieters",                     //  StL
                "Carson Kelly",                     //  Ari
                "Roberto Perez",                    // Cle
                "Grayson Greiner",                  //  Det
                "Jeff Mathis",                      // Tex
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                prospects,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "Catchers",
                    K_CurrentWeek),
                IncludePriorWeek = true
            };

            sut.Execute();
        }
Example #7
0
        public void HotList_ReturnsHotPlayersFromOneTeam()
        {
            var result = _sut.GetHotList(
                teamSlugs: new List <string>
            {
                "mlb-la",
                "mlb-min",
                "mlb-hou",
                "mlb-nyy",
                "mlb-tb",
                "mlb-chc",
                "mlb-mil",
                "mlb-phi",
                "mlb-atl",
                "mlb-tex",
                "mlb-col",
            },
                queryDate: Utility.WeekStart(12).AddDays(-1),
                gamesBack: 14);

            foreach (var item in result)
            {
                System.Console.WriteLine(item);
            }
            Assert.IsTrue(result.Count > 0);
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                result,
                Utility.CurrentWeek())
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "HotList",
                    Utility.CurrentWeek()),
                IncludePriorWeek = true
            };

            sut.Execute();
        }
        public void LineupHittersChoice()
        {
            string[] prospects = new string[]
            {
                "Nomar Mazara",
                "Michael Conforto",
                "Joc Pederson",
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                prospects,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "LineupChoice",
                    K_CurrentWeek),
                IncludePriorWeek = true
            };

            sut.Execute();
        }
        public void BullOutfielders_ForTheWeek()
        {
            string[] streamers = new string[]
            {
                "Victor Robles",
                "Brian Goodwin",
                "Eric Thames"
            };
            var sut = new WeekReportMulti(
                _cachedGameLogRepository,
                _rosterMaster,
                streamers,
                K_CurrentWeek)
            {
                OutputFile = TestHelper.FileName(
                    "Hitters",
                    "Stream-Hitters",
                    K_CurrentWeek),
                IncludePriorWeek = true
            };

            sut.Execute();
        }