示例#1
0
 public Bet(PlayType playType, bool isGeneralType = false)
 {
     BetAmount = new ScoreAmount(isMatch: true, isGeneral: isGeneralType);
     PlayType  = playType;
 }
示例#2
0
 public bool IsSuccessFor(ScoreAmount amount)
 {
     return(amount.CompareTo(BetAmount) >= 0);
 }
示例#3
0
 public Bet(PlayType playType, int amount)
 {
     BetAmount = new ScoreAmount(amount);
     PlayType  = playType;
 }