Beispiel #1
0
 public ScaleResult(EvaluationMapEntity evaluationMapEntity, int points)
 {
     ScaleId   = evaluationMapEntity.ScaleId;
     ScaleName = evaluationMapEntity.Scale.Name;
     Points    = points;
     Result    = evaluationMapEntity.Result;
 }
        public EvaluationMapEntity ToEntity(ProfessionalQualitiesDbContext dbContext,
                                            TestEntity testEntity, ScaleEntity scaleEntity)
        {
            var entity = new EvaluationMapEntity
            {
                Test            = testEntity,
                Scale           = scaleEntity,
                LowerRangeValue = LowerRangeValue,
                UpperRangeValue = UpperRangeValue,
                Result          = Result
            };

            dbContext.EvaluationMaps.Add(entity);

            return(entity);
        }
 public AppraisedRange(EvaluationMapEntity evaluationMapEntity)
 {
     LowerRangeValue = evaluationMapEntity.LowerRangeValue;
     UpperRangeValue = evaluationMapEntity.UpperRangeValue;
     Result          = evaluationMapEntity.Result;
 }