Beispiel #1
0
 public LotteryDraw(string name, string description, DateTime date, LotteryNumbers primaryNumbers, LotteryNumbers secondaryNumbers)
 {
     Name             = name;
     Description      = description;
     DrawDate         = date;
     PrimaryNumbers   = primaryNumbers;
     SecondaryNumbers = secondaryNumbers;
 }
Beispiel #2
0
 private bool Validate(LotteryNumbers lotteryNumbers, IList <int> winningNumbers)
 {
     return(winningNumbers.All(winningNo => lotteryNumbers.Numbers.Any(lotteryNum => winningNo == lotteryNum)));
 }