示例#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();
 }