Ejemplo n.º 1
0
        public virtual RangingResult <TUserBetDto> GetEndedUserBetDtos(int userId, EndedStakesFilters endedStakesFilters)
        {
            var rr             = _multitenantUnifiedBetService.GetEndedBets(userId, endedStakesFilters);
            var lst            = rr.Items.Select(MapToDto).ToList();
            var ongonigBetDtos = new RangingResult <TUserBetDto>(rr.From, rr.To, rr.Total, lst, rr.ItemsInRangeCount);

            return(ongonigBetDtos);
        }
        public override RangingResult <ItBetMainInfo> GetEndedBets(int userId, EndedStakesFilters endedStakesFilters)
        {
            //get UnifiedBet by default-specific way or use base
            var lst = new List <ItBetMainInfo>
            {
                new ItBetMainInfo
                {
                    Id = 3,
                    CommonPropertyForAllBrands = "CommonPropVal1 for ended",
                    ItSpecificProperty         = "ItPropVal1 for ended",
                    SogeiTicket          = "SogeiTicket1 for ongoing",
                    BetSelectionMainInfo = new List <ItBetSelectionMainInfo>
                    {
                        new ItBetSelectionMainInfo
                        {
                            Id = 3,
                            CommonBetSelectionProperty = "CommonPropVal1 for ended",
                            ItSpecificInfo             = "ItPropVal1 for ended"
                        }
                    }
                },
                new ItBetMainInfo
                {
                    Id = 4,
                    CommonPropertyForAllBrands = "CommonPropVal2 for ended",
                    ItSpecificProperty         = "ItPropVal2 for ended",
                    SogeiTicket          = "SogeiTicket2 for ongoing",
                    BetSelectionMainInfo = new List <ItBetSelectionMainInfo>
                    {
                        new ItBetSelectionMainInfo
                        {
                            Id = 4,
                            CommonBetSelectionProperty = "CommonPropVal2 for ended",
                            ItSpecificInfo             = "ItPropVal2 for ended"
                        }
                    }
                },
            };
            var rr = new RangingResult <ItBetMainInfo>(1, lst.Count, lst.Count, lst, lst.Count);

            return(rr);
        }