当前位置: 首页>>代码示例>>C#>>正文


C# ITicket类代码示例

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


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


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