Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }