public void ImageScanResultGetCheckResultValueSucceededWithCVE(webapp.Database.Models.CveSeverity severity, CheckValue expectedValue) { var scanResult = new ImageScanResult { Status = ImageScanStatus.Succeeded, Counters = new[] { new VulnerabilityCounter { Severity = severity, Count = 1 } }, }; scanResult.GetCheckResultValue().Should().Be(expectedValue); }
public void ImageScanResultGetCheckResultValue_NotSucceededStatuses(ImageScanStatus status, CheckValue expectedValue) { var scanResult = new ImageScanResult { Status = status }; scanResult.GetCheckResultValue().Should().Be(expectedValue); }