Exemplo n.º 1
0
        public void GenerateReportTest()
        {
            ReportComplete report = gamesApiService.GenerateReport();

            Assert.True(report.highest_rated_game.Equals("TESTGAME3"));
            Assert.True(report.user_with_most_comments.Equals("Jack"));
        }
Exemplo n.º 2
0
        public ActionResult <string> GetReport()
        {
            ReportComplete report = gamesApiService.GenerateReport();

            String jsonReport = JsonConvert.SerializeObject(report, Formatting.Indented);

            return(jsonReport);
        }