Example #1
0
 public Lottery(ILotterySpec spec)
 {
     Model             = spec.CreateModel();
     TotalBalls        = Model.TotalElements;
     BallsCount        = Model.ChosenElements;
     GameOdds          = 1 / (double)Model.TotalCombinations;
     TotalCombinations = Model.TotalCombinations;
     StartDay          = spec.BeginDay;
     PlayedWeekDay     = StartDay.DayOfWeek;
 }
Example #2
0
 public FiboBinFactory(ILotteryDataFactory factory, ILotterySpec spec)
 {
     _factory = factory;
     _spec    = spec;
 }