Ejemplo n.º 1
0
        public void MainMethod()
        {
            this.currentScoreDisplay = new CurrentScoreDisplay();
            this.averageScoreDisplay = new AverageScoreDisplay();

            CricketData cricketData = new CricketData(currentScoreDisplay, averageScoreDisplay);

            cricketData.DataChanged();
        }
Ejemplo n.º 2
0
 public CricketData(CurrentScoreDisplay currentScoreDisplay, AverageScoreDisplay averageScoreDisplay)
 {
     this.currentScoreDisplay = currentScoreDisplay;
     this.averageScoreDisplay = averageScoreDisplay;
 }