notify doctors work, audit work, new product advisory sprints
This commit is contained in:
@@ -11,6 +11,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using FluentAssertions;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using StellaOps.Determinism;
|
||||
using StellaOps.Scanner.WebService.Contracts;
|
||||
using StellaOps.Scanner.WebService.Domain;
|
||||
using StellaOps.Scanner.WebService.Services;
|
||||
@@ -28,6 +29,7 @@ public sealed class RichGraphAttestationServiceTests
|
||||
{
|
||||
private readonly FakeTimeProvider _timeProvider;
|
||||
private readonly RichGraphAttestationService _service;
|
||||
private readonly IGuidProvider _guidProvider = new SequentialGuidProvider();
|
||||
|
||||
public RichGraphAttestationServiceTests()
|
||||
{
|
||||
@@ -302,7 +304,7 @@ public sealed class RichGraphAttestationServiceTests
|
||||
public async Task GetAttestationAsync_NonExistentAttestation_ReturnsNull()
|
||||
{
|
||||
// Act
|
||||
var result = await _service.GetAttestationAsync(ScanId.New(), "nonexistent-graph");
|
||||
var result = await _service.GetAttestationAsync(ScanId.New(_guidProvider), "nonexistent-graph");
|
||||
|
||||
// Assert
|
||||
result.Should().BeNull();
|
||||
@@ -317,7 +319,7 @@ public sealed class RichGraphAttestationServiceTests
|
||||
await _service.CreateAttestationAsync(input);
|
||||
|
||||
// Act
|
||||
var result = await _service.GetAttestationAsync(ScanId.New(), input.GraphId);
|
||||
var result = await _service.GetAttestationAsync(ScanId.New(_guidProvider), input.GraphId);
|
||||
|
||||
// Assert
|
||||
result.Should().BeNull();
|
||||
@@ -396,7 +398,7 @@ public sealed class RichGraphAttestationServiceTests
|
||||
{
|
||||
return new RichGraphAttestationInput
|
||||
{
|
||||
ScanId = ScanId.New(),
|
||||
ScanId = ScanId.New(_guidProvider),
|
||||
GraphId = $"richgraph-{Guid.NewGuid():N}",
|
||||
GraphDigest = "sha256:abc123def456789",
|
||||
NodeCount = 1234,
|
||||
|
||||
Reference in New Issue
Block a user