コード例 #1
0
 public Lottery(IMultiLotterySpec spec)
 {
     Model             = spec.CreateModel();
     TotalBalls        = Model.TotalElements;
     BallsCount        = Model.ChosenElements;
     GameOdds          = 1 / (double)Model.TotalCombinations;
     TotalCombinations = Model.TotalCombinations;
     StartDay          = spec.BeginDay;
     PlayedWeekDay     = StartDay.DayOfWeek;
 }
コード例 #2
0
 public ICombination <int> CreateModel()
 {
     return(_spec.CreateModel());
 }