/// <summary>
        /// Initializes a new instance of the <see cref="CalculationMapper"/> class.
        /// </summary>
        /// <param name="data">A <see cref="CalculationResponseType"/> containing available selections</param>
        internal CalculationMapper(CalculationResponseType data)
        {
            if (data == null)
                throw new ArgumentNullException(nameof(data));

            _data = data;
        }
Ejemplo n.º 2
0
        internal CalculationDTO(CalculationResponseType calculation)
        {
            if (calculation == null)
            {
                throw new ArgumentNullException(nameof(calculation));
            }

            Odds        = calculation.calculation.odds;
            Probability = calculation.calculation.probability;
        }