本文整理汇总了C#中ITicketHelper类的典型用法代码示例。如果您正苦于以下问题:C# ITicketHelper类的具体用法?C# ITicketHelper怎么用?C# ITicketHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITicketHelper类属于命名空间,在下文中一共展示了ITicketHelper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Setup
public void Setup()
{
_choice = new Choice407();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.ExactHomeTeamGoals;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice407Test.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 Choice129();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.FirstHalft_Exact_Goal;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice129Test.cs
示例5: Setup
public void Setup()
{
_choice = new Choice24();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Double_Change;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice24Test.cs
示例6: Setup
public void Setup()
{
_choice = new Choice6();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Total_Goal;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice6Test.cs
示例7: 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
示例8: 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
示例9: 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
示例10: 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
示例11: 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
示例12: Setup
public void Setup()
{
_choice = new Choice1236();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.VT_TotalPoints;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice1236Test.cs
示例13: BuildBetTeam
protected override void BuildBetTeam(ITicket ticket, ITicketHelper ticketHelper, List<ITicketData> ticketData)
{
string team = ticket.BetTeam != null && ticket.BetTeam.Contains(BetTeamValue.H) ? Template.Match.homeTeam : Template.Match.awayTeam;
string yesNo = ticket.BetTeam != null && ticket.BetTeam.Contains(BetTeamValue.Y) ? CoreBetList.lblYes : CoreBetList.lblNo;
Template.betTeam = string.Join(null, new string[] { team, " <span class=\"", Favorite, "\">", yesNo.ToUpper(), "</span>" });
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice13.cs
示例14: Setup
public void Setup()
{
_choice = new Choice136();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.First_Home_Team_OddEven;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice136Test.cs
示例15: 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)
{
string choice = ticket.BetTeam;
var betTeam = string.Empty;
switch (choice)
{
case "01":
betTeam = "4 " + CoreBetList.points;
break;
case "02":
betTeam = "5 " + CoreBetList.points;
break;
case "03":
betTeam = "6 " + CoreBetList.points;
break;
case "04":
betTeam = "7 " + CoreBetList.upPoints;
break;
}
// " " because export format
Template.betTeam = HtmlCharacters.NoneBreakingSpace + betTeam;
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:32,代码来源:Choice1328.cs
示例16: 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
示例17: Setup
public void Setup()
{
_choice = new Choice1307();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.MatchTotalGames3Way;
_ticketHelper = Substitute.For<ITicketHelper>();
}
开发者ID:huyjack178,项目名称:harrsion-project,代码行数:7,代码来源:Choice1307Test.cs
示例18: 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
示例19: 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
示例20: 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
注:本文中的ITicketHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论