public void AddScore() { var match = new MatchService(this.LegsMatch); match.AddScore(377, this.Players.First()); Assert.AreEqual(377, match.GetCurrentLeg().LegByPlayers.First(x => x.PlayerId == this.Players.First().Name).Scores.Last()); }
/// <summary> /// Событие, выигрыша подачи первым игроком /// </summary> private void BtnPlayer1_Click(object sender, EventArgs e) { _matchService.AddScore(PlayerType.FirstPlayer); UpdateMatchStatistics(); }