示例#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;
 }