private async Task <BetRateCalculator> GetBetRateCalculator(BetRateAlgorithm betRateAlgorithm) { var factory = new BetRateCalculatorFactory(betRateAlgorithm.LocusRage); AlgorithmType algorithmType = await this._repositoryAlgorithmType.Get(betRateAlgorithm.AlgorithmTypeId); return(factory.Create(algorithmType.Name)); }
private async Task <BetRateCalculatorDateTime> GetBetRateCalculator(BetRateAlgorithm betRateAlgorithm, Event @event) { var factory = new BetRateCalculatorFactory(betRateAlgorithm.LocusRage); AlgorithmType algorithmType = await this._repositoryAlgorithmType.Get(betRateAlgorithm.AlgorithmTypeId); return(factory.CreateDateTime(algorithmType.Name, @event.StartDate, @event.EndDate)); }