• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ITicket类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ITicket的典型用法代码示例。如果您正苦于以下问题:C# ITicket类的具体用法?C# ITicket怎么用?C# ITicket使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ITicket类属于命名空间,在下文中一共展示了ITicket类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Setup

 public void Setup()
 {
     _choice = new Choice30();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.FirstCorrectScore;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice30Test.cs


示例2: Setup

 public void Setup()
 {
     _choice = new Choice123();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.Draw_NoDraw;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice123Test.cs


示例3: Setup

 public void Setup()
 {
     _choice = new Choice_22006();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.PlayTechCasino;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice_22006Test.cs


示例4: Setup

 public void Setup()
 {
     _choice = new Choice15();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.FirstHalf_1X2;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice15Test.cs


示例5: Setup

 public void Setup()
 {
     _choice = new Choice31();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.Win;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice31Test.cs


示例6: Setup

 public void Setup()
 {
     _choice = new Choice1316();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.SetXGameHandicap;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice1316Test.cs


示例7: BuildRunningLink

        private string BuildRunningLink(ITicket ticket, string status)
        {
            var viewRunningTicketResultTag = new string[]
                    {
                        "<div class=\"result\" onclick=\"ViewResult(",
                        ticket.MatchId.ToString(CultureInfo.InvariantCulture),
                        ", ",
                        string.IsNullOrEmpty(ticket.Race) ? "0" : ticket.Race,
                        ", ",
                        ticket.BetTypeId.ToString(CultureInfo.InvariantCulture),
                        ", ",
                        ticket.SportTypeId.ToString(CultureInfo.InvariantCulture),
                        ", ",
                        "'",
                        ticket.BetCheck ?? string.Empty,
                        "'",
                        ", ",
                        "'",
                        ticket.UserName ?? string.Empty,
                        "'",
                        ", ",
                        "'",
                        Formatter.FullDateFormat(ticket.WinlostDate),
                        "'",
                        ", ",
                        "0, ",
                        ticket.LeagueId.ToString(CultureInfo.InvariantCulture),
                        ", 0, 0);\">",
                        status,
                        "</div>"
                    };

            return string.Join(null, viewRunningTicketResultTag);
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:34,代码来源:Status2101.cs


示例8: BuildBetTeam

        protected override void BuildBetTeam(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            bool betHomeTeam = ticket.BetTeam != null && ticket.BetTeam.Contains(BetTeamValue.H);
            var betTeam = betHomeTeam ? Template.Match.homeTeam : CoreBetList.lblDraw;

            Template.betTeam = betTeam;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice122.cs


示例9: BuildBetTeam

        /// <summary>
        /// Builds the bet team.
        /// </summary>
        /// <param name="ticket">The ticket.</param>
        /// <param name="ticketHelper">The ticket helper.</param>
        /// <param name="ticketData">The ticket data.</param>
        protected override void BuildBetTeam(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            bool betHome = IsBetHome(ticket);
            bool betAway = IsBetAway(ticket);

            if (betHome)
            {
                Template.betTeam = Template.Match.homeTeam;
            }
            else if (betAway)
            {
                Template.betTeam = Template.Match.awayTeam;
            }
            else
            {
                if (ticket.Handicap2 > ticket.Handicap1)
                {
                    Template.betTeam = string.Join(null, new string[] { CoreBetList.lblDraw, "&nbsp;(", CoreBetList.h, "+", ConvertByBetType.Hdp(ticket.Handicap2) + ")" });
                }
                else
                {
                    Template.betTeam = string.Join(null, new string[] { CoreBetList.lblDraw, "&nbsp;(", CoreBetList.a, "+", ConvertByBetType.Hdp(ticket.Handicap1), ")" });
                }
            }
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:31,代码来源:Choice1309.cs


示例10: BuildBetTeam

        protected override void BuildBetTeam(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            string betId = ticket.BetId.ToString();
            if (betId == "0")
            {
                betId = string.Empty;
            }

            string liveScore = (!ticket.IsLive || string.IsNullOrEmpty(betId)) ? " [0]" : string.Join(null, new string[] { " [", betId, "]" });

            string betTeam = string.Empty;
            switch (ticket.BetTeam)
            {
                case "1:1":
                    betTeam = CoreBetList.lblOverOdd;
                    break;

                case "1:2":
                    betTeam = CoreBetList.lblOverEven;
                    break;

                case "2:1":
                    betTeam = CoreBetList.lblUnderOdd;
                    break;

                case "2:2":
                    betTeam = CoreBetList.lblUnderEven;
                    break;
            }

            betTeam += " <span style='color:#555555'>37.5</span> ";

            Template.betTeam = betTeam + liveScore;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:34,代码来源:Choice89.cs


示例11: Setup

 public void Setup()
 {
     _choice = new Choice1103();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.Sicbo;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice1103Test.cs


示例12: Setup

 public void Setup()
 {
     _choice = new Choice10();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.Outright;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice10Test.cs


示例13: BuildBetTeam

        protected override void BuildBetTeam(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            var betTeam = string.Empty;

            switch (ticket.BetTeam)
            {
                case "0:0":
                    betTeam = CoreBetList.NoGoalBetType14;
                    break;
                case "1:1":
                    betTeam = CoreBetList.HomeFG;
                    break;
                case "1:2":
                    betTeam = CoreBetList.HomeLG;
                    break;
                case "2:1":
                    betTeam = CoreBetList.AwayFG;
                    break;
                case "2:2":
                    betTeam = CoreBetList.AwayLG;
                    break;
            }

            Template.betTeam = betTeam;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:25,代码来源:Choice14.cs


示例14: Setup

 public void Setup()
 {
     _choice = new Choice23002();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.CasinoPending;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice23002Test.cs


示例15: Setup

 public void Setup()
 {
     _choice = new Choice159();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes._3rdExactTotalGoals;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice159Test.cs


示例16: Setup

 public void Setup()
 {
     _choice = new Choice26();
     _ticket = Substitute.For<ITicket>();
     _ticket.BetTypeId = BetTypes.Both_One_Neither;
     _ticketHelper = Substitute.For<ITicketHelper>();
 }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice26Test.cs


示例17: BuildMatch

        protected override void BuildMatch(ITicket ticket, ITicketHelper ticketHelper)
        {
            base.BuildMatch(ticket, ticketHelper);

            Template.Match.VS = null;
            Template.Match.homeTeam = string.Join(null, new string[] { CoreBetList.numbergameno, HtmlCharacters.NoneBreakingSpace, ticket.MatchCode });
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice81.cs


示例18: BuildBetTeam

        /// <summary>
        /// Builds the bet team.
        /// </summary>
        /// <param name="ticket">The ticket.</param>
        /// <param name="ticketHelper">The ticket helper.</param>
        /// <param name="ticketData">The ticket data.</param>
        protected override void BuildBetTeam(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
        {
            var betTeam = string.Empty;

            switch (ticket.BetTeam.ToLowerInvariant())
            {
                case BetTeamValue.G0:
                    betTeam = CoreBetList.ZeroGoals;
                    break;

                case BetTeamValue.G1:
                    betTeam = CoreBetList.OneGoal;
                    break;

                case BetTeamValue.G2:
                    betTeam = CoreBetList.TwoGoals;
                    break;

                case BetTeamValue.G3:
                    betTeam = CoreBetList.ThreeGoals;
                    break;

                case BetTeamValue.G4:
                    betTeam = CoreBetList.FourAndOver;
                    break;
            }

            Template.betTeam = betTeam;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:35,代码来源:Choice179.cs


示例19: RenderRTF

        public override IRichTextString RenderRTF(ITicket ticket, List<ITicketData> ticketData, GetCachePropertyById funcGetOddsTypeName, RTFHelper rtfHelper)
        {
            Render(ticket, ticketData, funcGetOddsTypeName);
            var rtfOdds = BuildRTFOddsCasino(rtfHelper);

            return rtfOdds;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Odds1000.cs


示例20: BuildBetTeamClassNameAndHandicap

        protected override void BuildBetTeamClassNameAndHandicap(ITicket ticket)
        {
            base.BuildBetTeamClassNameAndHandicap(ticket);

            Template.Handicap.handicap = ConvertByBetType.Hdp(ticket.Handicap1);
            Template.betTeamClassName = Template.betTeam == CoreBetList.over ? Favorite : Underdog;
        }
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice156.cs



注:本文中的ITicket类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ITicketHelper类代码示例发布时间:2022-05-24
下一篇:
C# IThreadManager类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap