Пример #1
0
 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;
 }
Пример #2
0
		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);
		}
Пример #3
0
 public AdminController(IBlobClient blobClient, IEloCalulator eloCalulator, ITrendCalculator trendCalculator)
 {
     this.blobClient      = blobClient;
     this.eloCalulator    = eloCalulator;
     this.trendCalculator = trendCalculator;
 }