Example #1
0
        public Sals CalculatedNist(int assessmentId, CSET_Context db)
        {
            NistProcessingLogic nistProcessing = new NistProcessingLogic();

            nistProcessing.CalcLevels(assessmentId, db);
            Sals rval = new Sals()
            {
                ALevel             = nistProcessing.highestQuestionAvailabilityValue.SALName,
                CLevel             = nistProcessing.highestQuestionConfidentialityValue.SALName,
                ILevel             = nistProcessing.highestQuestionIntegrityValue.SALName,
                Selected_Sal_Level = nistProcessing.HighestOverallNISTSALLevel.SALName
            };

            return(rval);
        }
Example #2
0
        private void calculateHighestAndSet()
        {
            if ((confidence_Level == null) ||
                (availability_Level == null) ||
                (integrity_Level == null))
            {
                return;
            }

            NistProcessingLogic pl = new NistProcessingLogic();

            SALLevelNIST sal = pl.GetHighestLevel(pl.StringValueToLevel[Constants.SAL_NONE.ToLower()],
                                                  pl.StringValueToLevel[confidence_Level.ToLower()],
                                                  pl.StringValueToLevel[availability_Level.ToLower()],
                                                  pl.StringValueToLevel[integrity_Level.ToLower()]
                                                  );

            Selected_Sal_Level = sal.SALName;
        }