public HomeController(IBlobClient blobClient, IModelCreator modelCreator, IEloCalulator eloCalulator, ITeamGenerator teamGenerator, ITrendCalculator trendCalculator) { this.blobClient = blobClient; this.modelCreator = modelCreator; this.eloCalulator = eloCalulator; this.teamGenerator = teamGenerator; this.trendCalculator = trendCalculator; }
public void InitializeTrendCalculator() { if (_trendCalculator == null) _trendCalculator = new TrendCalculatorIncremental(); IList<int> trendValues = _dataCollection.GetTrendCollection(true); System.Diagnostics.Debug.Assert(trendValues != null); if (trendValues == null) throw new InvalidOperationException(); _trendCalculator.Initialize(_dataCollection.DataCollection, trendValues); }
public AdminController(IBlobClient blobClient, IEloCalulator eloCalulator, ITrendCalculator trendCalculator) { this.blobClient = blobClient; this.eloCalulator = eloCalulator; this.trendCalculator = trendCalculator; }