public void FixtureSetUp() { transformer = new GameDefinitionSummaryViewModelBuilder(); List <PlayedGame> playedGames = new List <PlayedGame>(); playedGames.Add(new PlayedGame() { Id = 10 }); playedGames.Add(new PlayedGame() { Id = 11 }); championPlayer = new Player { Name = championName, Id = championPlayerId }; previousChampionPlayer = new Player { Name = previousChampionName, Id = previousChampionPlayerId }; champion = new Champion { Player = championPlayer, }; previousChampion = new Champion { Player = previousChampionPlayer }; gameDefinitionSummary = new GameDefinitionSummary() { Id = 1, Name = "game definition name", Description = "game definition description", GamingGroupId = gamingGroupid, GamingGroupName = "gaming group name", PlayedGames = playedGames, Champion = champion, PreviousChampion = previousChampion }; currentUser = new ApplicationUser() { CurrentGamingGroupId = gamingGroupid }; viewModel = transformer.Build(gameDefinitionSummary, currentUser); }
public void FixtureSetUp() { _transformer = new GameDefinitionSummaryViewModelBuilder(new Transformer(), new WeightTierCalculator()); List <PlayedGame> playedGames = new List <PlayedGame>(); playedGames.Add(new PlayedGame() { Id = 10 }); playedGames.Add(new PlayedGame() { Id = 11 }); _championPlayer = new Player { Name = _championName, Id = _championPlayerId }; _previousChampionPlayer = new Player { Name = _previousChampionName, Id = _previousChampionPlayerId }; _champion = new Champion { Player = _championPlayer, }; _previousChampion = new Champion { Player = _previousChampionPlayer }; _gameDefinitionSummary = new GameDefinitionSummary() { Id = 1, Name = "game definition name", Description = "game definition description", GamingGroupId = _gamingGroupid, GamingGroupName = "gaming group name", PlayedGames = playedGames, Champion = _champion, PreviousChampion = _previousChampion }; _currentUser = new ApplicationUser() { CurrentGamingGroupId = _gamingGroupid }; _viewModel = _transformer.Build(_gameDefinitionSummary, _currentUser); }