Пример #1
0
        public BowlingSimulator Play(BowlingScorer bowlingScorer)
        {
            foreach (var knockedPins in this.frames.SelectMany(x => x.Rolls))
            {
                bowlingScorer.Roll(knockedPins);
            }

            return(this);
        }
Пример #2
0
 public void Setup()
 {
     scorer = new BowlingScorer();
 }
Пример #3
0
 public void SetUp()
 {
     this.testee = new BowlingScorer();
 }