public StudentWithMetrics.TrendMetric PrepareTrendMetric(long studentUSI, int uniqueIdentifier, int? metricVariantId, string metricValue, int? stateTypeId, string valueType, string displayValueFormat, int? trendInterpretation, int? trendDirection, ITrendRenderingDispositionProvider trendRenderingDispositionProvider)
        {
            if (metricVariantId == null)
                return new StudentWithMetrics.TrendMetric(studentUSI) { UniqueIdentifier = uniqueIdentifier, State = MetricStateType.None, Trend = TrendEvaluation.None };

            var additionalMetric = new StudentWithMetrics.TrendMetric(studentUSI);
            PrepareMetric(additionalMetric, uniqueIdentifier, metricVariantId, metricValue, stateTypeId, valueType, displayValueFormat);
            if (!trendDirection.HasValue || !trendInterpretation.HasValue)
                additionalMetric.Trend = TrendEvaluation.None;
            else
                additionalMetric.Trend = trendRenderingDispositionProvider.GetTrendRenderingDisposition((TrendDirection)trendDirection, (TrendInterpretation)trendInterpretation);

            return additionalMetric;
        }
Ejemplo n.º 2
0
 protected override void ExecuteTest()
 {
     studentListUtilitiesProvider = new StudentListUtilitiesProvider(metricStateProvider, metricNodeResolver);
     actualModel = studentListUtilitiesProvider.PrepareTrendMetric(suppliedStudentUSI, suppliedUniqueIdentifier, suppliedMetricVariantId, suppliedMetricValue.ToString(), suppliedStateType, suppliedValueType, suppliedDisplayFormat, suppliedTrendInterpretation, null, null);
 }
Ejemplo n.º 3
0
 protected override void ExecuteTest()
 {
     studentListUtilitiesProvider = new StudentListUtilitiesProvider(metricStateProvider, metricNodeResolver);
     actualModel = studentListUtilitiesProvider.PrepareTrendMetric(suppliedStudentUSI, suppliedSchoolId, suppliedUniqueIdentifier, suppliedMetricVariantId, suppliedMetricValue.ToString(), suppliedStateType, suppliedValueType, suppliedTrendDirection, trendRenderingDispositionProvider);
 }
Ejemplo n.º 4
0
 protected override void ExecuteTest()
 {
     studentListUtilitiesProvider = new StudentListUtilitiesProvider(metricStateProvider, metricNodeResolver);
     actualModel = studentListUtilitiesProvider.PrepareTrendMetric(suppliedStudentUSI, suppliedUniqueIdentifier, null, null, null, null, null, null, null, null);
 }