public void TestParse(CvssV3 toTest, double baseScore, QualitativeSeverityRating baseQ, double tempScore, QualitativeSeverityRating tempQ, double envScore, QualitativeSeverityRating envQ) { Output.WriteLine(toTest.Vector); }
public double GetScore(string vectorString) { var cvss = new CvssV3(vectorString); var score = cvss.BaseScore; return(score); }
public void TestQualitativeRating(CvssV3 toTest, double baseScore, QualitativeSeverityRating baseQ, double tempScore, QualitativeSeverityRating tempQ, double envScore, QualitativeSeverityRating envQ) { Output.WriteLine(toTest.Vector); Assert.Equal(baseQ, toTest.QualitativeBaseScore); Assert.Equal(tempQ, toTest.QualitativeTemporalScore); Assert.Equal(envQ, toTest.QualitativeEnvironmentalScore); }
internal CvssV3Builder(CvssV3 cvss) { Cvss = new CvssV3(cvss); UsedMetrics = new List <string>(); }
public static CvssV3Builder FromExistingV3(CvssV3 cvss) { return(new CvssV3Builder(cvss)); }