本文整理汇总了C#中ITicketHelper类的典型用法代码示例。如果您正苦于以下问题:C# ITicketHelper类的具体用法?C# ITicketHelper怎么用?C# ITicketHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITicketHelper类属于命名空间,在下文中一共展示了ITicketHelper类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Setup
public void Setup()
{
_choice = new Choice407();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.ExactHomeTeamGoals;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例2: Setup
public void Setup()
{
_choice = new Choice123();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Draw_NoDraw;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例3: Setup
public void Setup()
{
_choice = new Choice_22006();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.PlayTechCasino;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例4: Setup
public void Setup()
{
_choice = new Choice129();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.FirstHalft_Exact_Goal;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例5: Setup
public void Setup()
{
_choice = new Choice24();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Double_Change;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例6: Setup
public void Setup()
{
_choice = new Choice6();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Total_Goal;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例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 });
}
示例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;
}
示例9: Setup
public void Setup()
{
_choice = new Choice10();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Outright;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例10: Setup
public void Setup()
{
_choice = new Choice30();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.FirstCorrectScore;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例11: Setup
public void Setup()
{
_choice = new Choice23002();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.CasinoPending;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例12: Setup
public void Setup()
{
_choice = new Choice1236();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.VT_TotalPoints;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例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>" });
}
示例14: Setup
public void Setup()
{
_choice = new Choice136();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.First_Home_Team_OddEven;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例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;
}