private static void SetScoreLastFrame(IList <int?> score, ILastFrame lastFrame) { lastFrame.SetBallOne(score[0] == null ? 0 : (int)score[0]); lastFrame.SetBallTwo(score[1] == null ? 0 : (int)score[1]); lastFrame.SetBallThree(score[2] == null ? 0 : (int)score[2]); }
public void Given_A_Frame() { _frame = new LastFrame(NumberOfFrames, NumberOfPins); }