Exemple #1
0
        private static string ReturnCorpFindings(SafterMap safer, IEnumerable <SaferMatrixData> enumerable)
        {
            string fullEP      = string.Empty;
            string breakString = "<br>";

            if (enumerable != null && enumerable.Count() > 0)
            {
                foreach (var ep in enumerable)
                {
                    fullEP = fullEP + ep.StandardLabel + breakString;
                }
            }

            return(fullEP);
        }
Exemple #2
0
        private static MockSurveyCorporateFindingsReport ReturnCorpFindingsRDLC(SafterMap safer, IEnumerable <SaferMatrixData> enumerable)
        {
            string fullEP      = string.Empty;
            string breakString = "<br>";

            if (enumerable != null && enumerable.Count() > 0)
            {
                foreach (var ep in enumerable)
                {
                    fullEP = fullEP + ep.StandardLabel + breakString;
                }
            }

            return(new MockSurveyCorporateFindingsReport
            {
                CorporateFinalScoreID = safer.ScoreID,
                FullEP = fullEP,
                LikeID = (int)safer.LikeID,
                ScopeID = safer.ScopeID.HasValue ? (int)safer.ScopeID : 1000,
                Likelihood = safer.Likelihood,
                Scope = safer.Scope
            });
        }