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; }
public FiboBinFactory(ILotteryDataFactory factory, ILotterySpec spec) { _factory = factory; _spec = spec; }