private static void AssertShortGameResultsAreEqual(
     ShortGameResultViewModel expectedResult,
     ShortGameResultViewModel actualResult,
     string messagePrefix = "")
 {
     Assert.AreEqual(expectedResult.HomeSetsScore, actualResult.HomeSetsScore, $"{messagePrefix} HomeSetsScore should match");
     Assert.AreEqual(expectedResult.AwaySetsScore, actualResult.AwaySetsScore, $"{messagePrefix} AwaySetsScore should match");
     Assert.AreEqual(expectedResult.IsTechnicalDefeat, actualResult.IsTechnicalDefeat, $"{messagePrefix} IsTechnicalDefeat should match");
 }
        public PivotStandingsViewModelTestFixture WithNotAllGamesPlayed()
        {
            _pivotStandings[0].TeamsStandings = new List <PivotStandingsTeamViewModel>
            {
                new PivotStandingsTeamViewModel
                {
                    TeamId    = 2,
                    TeamName  = "TeamNameB",
                    Points    = 3,
                    SetsRatio = (float)3 / 3,
                },
                new PivotStandingsTeamViewModel
                {
                    TeamId    = 1,
                    TeamName  = "TeamNameA",
                    Points    = 3,
                    SetsRatio = (float)3 / 3,
                },
                new PivotStandingsTeamViewModel
                {
                    TeamId    = 3,
                    TeamName  = "TeamNameC",
                    Points    = 0,
                    SetsRatio = null,
                },
            };

            _pivotStandings[0].GamesStandings = new List <PivotStandingsGameViewModel>
            {
                new PivotStandingsGameViewModel
                {
                    HomeTeamId = 1,
                    AwayTeamId = 2,
                    Results    = new List <ShortGameResultViewModel>
                    {
                        new ShortGameResultViewModel(1, 3, 0),
                        new ShortGameResultViewModel(2, 0, 3),
                    },
                },
                new PivotStandingsGameViewModel
                {
                    HomeTeamId = 1,
                    AwayTeamId = 3,
                    Results    = new List <ShortGameResultViewModel>
                    {
                        ShortGameResultViewModel.CreatePlannedGame(3),
                        ShortGameResultViewModel.CreatePlannedGame(4),
                    },
                },
                new PivotStandingsGameViewModel
                {
                    HomeTeamId = 2,
                    AwayTeamId = 3,
                    Results    = new List <ShortGameResultViewModel>
                    {
                        ShortGameResultViewModel.CreatePlannedGame(5),
                        ShortGameResultViewModel.CreatePlannedGame(6),
                    },
                },
            };
            _pivotStandings[0].DivisionName = "DivisionNameA";

            return(this);
        }