public Reel(ISymbolGenerator symbolGenerator, IOptions <SlotMachineSettings> settings) { this.symbolGenerator = symbolGenerator; rows = settings.Value.Rows; cols = settings.Value.Cols; InitializeAvailableSymbols(settings.Value.SlotMachineSymbolsSettings); }
public SlotMachine( Player player, ISymbolGenerator symbolGenerator, ICoefficientCalculator coefficientCalculator) { m_Player = player; m_SymbolGenerator = symbolGenerator; m_CoefficientCalculator = coefficientCalculator; }
protected override void Context() { _view = A.Fake <IValueMappingGroupingView>(); _colorGenerator = A.Fake <IColorGenerator>(); _symbolGenerator = A.Fake <ISymbolGenerator>(); sut = new ValueMappingGroupingPresenter(_view, _colorGenerator, _symbolGenerator); _populationDataCollector = A.Fake <IPopulationDataCollector>(); _covariateField = A.Fake <PopulationAnalysisCovariateField>(); A.CallTo(() => _covariateField.GetValues(_populationDataCollector)).Returns(new[] { "Male", "Male", "Female", "Female" }); A.CallTo(() => _view.BindTo(A <IEnumerable <GroupingLabelDTO> > ._)) .Invokes(x => _allLabels = x.GetArgument <IEnumerable <GroupingLabelDTO> >(0).ToList()); }
protected override void Context() { _view = A.Fake <IFixedLimitsGroupingView>(); _populationDataCollector = A.Fake <IPopulationDataCollector>(); _field = A.Fake <PopulationAnalysisParameterField>(); _colorGenerator = A.Fake <IColorGenerator>(); _symbolGenerator = A.Fake <ISymbolGenerator>(); sut = new FixedLimitsGroupingPresenter(_view, _colorGenerator, _symbolGenerator); //standard action for all tests _dimension = A.Fake <IDimension>(); _unit = A.Fake <Unit>(); _field.Dimension = _dimension; _field.DisplayUnit = _unit; A.CallTo(() => _view.BindTo(A <IEnumerable <FixedLimitGroupingDTO> > ._, A <Unit> ._)) .Invokes(x => _allDTOs = x.GetArgument <NotifyList <FixedLimitGroupingDTO> >(0).DowncastTo <IEnumerable <FixedLimitGroupingDTO> >()); A.CallTo(() => _field.CanBeUsedForGroupingIn(_populationDataCollector)).Returns(true); A.CallTo(() => _field.GetValues(_populationDataCollector)).Returns(_values); }
public ValueMappingGroupingPresenter(IValueMappingGroupingView view, IColorGenerator colorGenerator, ISymbolGenerator symbolGenerator) : base(view) { _colorGenerator = colorGenerator; _symbolGenerator = symbolGenerator; _mapping = new NotifyList <GroupingLabelDTO>(); }
public FixedLimitsGroupingPresenter(IFixedLimitsGroupingView view, IColorGenerator colorGenerator, ISymbolGenerator symbolGenerator) : base(view) { _colorGenerator = colorGenerator; _symbolGenerator = symbolGenerator; _fixedLimitDTOs = new NotifyList <FixedLimitGroupingDTO>(); }