本文整理汇总了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>();
}
示例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 Choice15();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.FirstHalf_1X2;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例5: Setup
public void Setup()
{
_choice = new Choice31();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Win;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例6: Setup
public void Setup()
{
_choice = new Choice1316();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.SetXGameHandicap;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例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);
}
示例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;
}
示例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, " (", CoreBetList.h, "+", ConvertByBetType.Hdp(ticket.Handicap2) + ")" });
}
else
{
Template.betTeam = string.Join(null, new string[] { CoreBetList.lblDraw, " (", CoreBetList.a, "+", ConvertByBetType.Hdp(ticket.Handicap1), ")" });
}
}
}
示例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;
}
示例11: Setup
public void Setup()
{
_choice = new Choice1103();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Sicbo;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例12: Setup
public void Setup()
{
_choice = new Choice10();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.Outright;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例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;
}
示例14: Setup
public void Setup()
{
_choice = new Choice23002();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes.CasinoPending;
_ticketHelper = Substitute.For<ITicketHelper>();
}
示例15: Setup
public void Setup()
{
_choice = new Choice159();
_ticket = Substitute.For<ITicket>();
_ticket.BetTypeId = BetTypes._3rdExactTotalGoals;
_ticketHelper = Substitute.For<ITicketHelper>();
}