Exemple #1
0
 public BowlingBoard(IBuild_frames_from_rolls Build_frames_from_rolls, ISum_rolls Sum_rolls, ISum_strikes Sum_strikes, ISum_spares Sum_spares, Join<IEnumerable<int>,IEnumerable<int>,IEnumerable<int>,Tuple<IEnumerable<int>,IEnumerable<int>,IEnumerable<int>>> join, ISum Sum) {
   this._Process += Build_frames_from_rolls.Process;
   Build_frames_from_rolls.Result += Sum_rolls.Process;
   Build_frames_from_rolls.Result += Sum_strikes.Process;
   Build_frames_from_rolls.Result += Sum_spares.Process;
   Sum_rolls.Result += join.Input1;
   Sum_strikes.Result += join.Input2;
   Sum_spares.Result += join.Input3;
   join.Output += Sum.Process;
   Sum.Result += m => this.Result(m);
 }
 public GroupCount(int count, ISum calculator)
 {
     _count = count;
     _calculator = calculator;
 }