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