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; }
public ICombination <int> CreateModel() { return(_spec.CreateModel()); }