Beispiel #1
0
 public DistributionDataCreator(IBinIntervalsCreator binIntervalsCreator, IRepresentationInfoRepository representationInfoRepository, IEntityPathResolver entityPathResolver, ICoreUserSettings userSettings)
 {
     _binIntervalsCreator          = binIntervalsCreator;
     _representationInfoRepository = representationInfoRepository;
     _entityPathResolver           = entityPathResolver;
     _userSettings = userSettings;
 }
Beispiel #2
0
        protected override void Context()
        {
            _pivotAnalysis = new PopulationPivotAnalysis();
            _pivotAnalysis.Add(_genderField);
            _pivotAnalysis.Add(_raceField);
            _pivotAnalysis.Add(_bmiField);
            _pivotAnalysis.Add(_cmaxField);
            var grouping = new FixedLimitsGroupingDefinition(_bmiField.Name);

            grouping.SetLimits(new[] { 25d }.OrderBy(x => x));
            grouping.AddItems(PopulationAnalysisHelperForSpecs.BMIGroups);
            _bmiClass = new PopulationAnalysisGroupingField(grouping)
            {
                Name = "BMI class"
            };
            _pivotAnalysis.Add(_bmiClass);
            _dimensionRepository = A.Fake <IDimensionRepository>();
            _pivotResultCreator  = A.Fake <IPivotResultCreator>();
            var userSettings = A.Fake <ICoreUserSettings>();

            userSettings.NumberOfIndividualsPerBin = 1;
            userSettings.NumberOfBins = 2;
            _binIntervalsCreator      = new BinIntervalsCreator(userSettings);
            sut = new RangeChartDataCreator(_dimensionRepository, _pivotResultCreator, _binIntervalsCreator);
        }
 protected override void Context()
 {
     _userSettings = A.Fake <ICoreUserSettings>();
     _userSettings.NumberOfBins = 2;
     _userSettings.NumberOfIndividualsPerBin = 100;
     _representationInfoRep = A.Fake <IRepresentationInfoRepository>();
     _entityPathResolver    = A.Fake <IEntityPathResolver>();
     _binIntervalCreator    = new BinIntervalsCreator(_userSettings);
     sut = new DistributionDataCreator(_binIntervalCreator, _representationInfoRep, _entityPathResolver, _userSettings);
 }
 protected override void Context()
 {
     _binIntervalCreator = A.Fake <IBinIntervalsCreator>();
     _observedData       = DomainHelperForSpecs.ObservedData();
     sut = new ResidualDistibutionDataCreator(_binIntervalCreator);
 }
Beispiel #5
0
 public RangeChartDataCreator(IDimensionRepository dimensionRepository, IPivotResultCreator pivotResultCreator, IBinIntervalsCreator binIntervalsCreator) : base(dimensionRepository, pivotResultCreator)
 {
     _binIntervalsCreator = binIntervalsCreator;
 }
 public ResidualDistibutionDataCreator(IBinIntervalsCreator binIntervalsCreator)
 {
     _binIntervalsCreator = binIntervalsCreator;
 }
Beispiel #7
0
 public HistogramTestPresenter(IHistogramTestView view, IBinIntervalsCreator binIntervalsCreator) : base(view)
 {
     _binIntervalsCreator = binIntervalsCreator;
 }