コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Volley.Matches.Match`1"/> class.
 /// </summary>
 /// <param name="teamA">Team a.</param>
 /// <param name="teamB">Team b.</param>
 /// <param name="rule">Rule.</param>
 /// <param name="initialServiceRight">The service right manager.</param>
 /// <param name="setCounter">The set counter.</param>
 protected Match(TTeam teamA, TTeam teamB, MatchRule rule, ISetCounter setCounter)
 {
     //ServiceRight = initialServiceRight ?? throw new ArgumentNullException(nameof(initialServiceRight));
     SetCounter = setCounter ?? throw new ArgumentNullException(nameof(setCounter));
     TeamA      = teamA ?? throw new ArgumentNullException(nameof(teamA));
     TeamB      = teamB ?? throw new ArgumentNullException(nameof(teamB));
     Rule       = rule ?? throw new ArgumentNullException(nameof(rule));
 }
コード例 #2
0
ファイル: MatchForTest.cs プロジェクト: KokiOishi/Volley
 public MatchForTest(TTeam teamA, TTeam teamB, MatchRule rule, ISetCounter setCounter)
     : base(teamA, teamB, rule, setCounter)
 {
 }
コード例 #3
0
ファイル: MatchStandalone.cs プロジェクト: KokiOishi/Volley
 /// <summary>
 /// Initializes a new instance of the <see cref="MatchStandalone{TTeam}"/> class.
 /// </summary>
 /// <param name="teamA">Team a.</param>
 /// <param name="teamB">Team b.</param>
 /// <param name="rule">Rule.</param>
 /// <param name="initialService">The team that serves initially.</param>
 /// <param name="setCounter">The set counter.</param>
 /// <exception cref="ArgumentException">Occures when the <paramref name="initialService"/> is equal to neither <paramref name="teamA"/> nor <paramref name="teamB"/>.</exception>
 public MatchStandalone(TTeam teamA, TTeam teamB, MatchRule rule, EnumTeams initialService, ISetCounter setCounter)
     : base(teamA, teamB, rule, setCounter)
 {
 }
コード例 #4
0
 public RuleSetupParameters(MatchSetupParameters ruleParameters, ISetCounter setCounter)
 {
     RuleParameters = ruleParameters;
     SetCounter     = setCounter ?? throw new ArgumentNullException(nameof(setCounter));
 }