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

            CricketData cricketData = new CricketData(currentScoreDisplay, averageScoreDisplay);

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