private MatchSerie4(int serieNumber, MatchGame4 game1, MatchGame4 game2, MatchGame4 game3, MatchGame4 game4) { SerieNumber = serieNumber; Game1 = game1; Game2 = game2; Game3 = game3; Game4 = game4; }
private static ResultSeries4ReadModel.Game CreateGame( IReadOnlyDictionary <string, Player> players, MatchGame4 matchGame) { ResultSeries4ReadModel.Game game = new() { Score = matchGame.Score, Player = players[matchGame.Player].Name, Pins = matchGame.Pins }; return(game); } }
public void AddGame(MatchGame4 game) { TotalSeries++; TotalPins += game.Pins; TotalScore += game.Score; }