private int RollBall(int noOfPins, int noOfTimes, IBowlingService bowling) { var score = 0; for (var i = 0; i < noOfTimes; i++) { score = bowling.RollBall(noOfPins); } return(score); }
public BowlingController(IBowlingService bowlingService) { _bowlingService = bowlingService; }
public BowlingGameController(IBowlingService bowlingService) { currentGame = bowlingService; }
public TimedService(IBowlingService service) => decoratedService = service;
internal LogService(IBowlingService service) => decoratedService = service;