コード例 #1
0
        public void TestGetExpectedTeamNews()
        {
            var api = new FantasyScoutApi(_logger);

            var expectedTeams = api.GetNextWeekStartingElevenByTeam();

            _logger.WriteInfoMessage("Expected teams: " +
                                     JsonConvert.SerializeObject(expectedTeams));

            // test serialize
            var formatter = new BinaryFormatter();

            using (var fs = new MemoryStream())
            {
                formatter.Serialize(fs, expectedTeams);
            }
        }