mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
14
src/ApiService/IntegrationTests/Fakes/TestContainers.cs
Normal file
14
src/ApiService/IntegrationTests/Fakes/TestContainers.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.OneFuzz.Service;
|
||||
|
||||
// TestContainers class allows use of InstanceID without having to set it up in blob storage
|
||||
class TestContainers : Containers {
|
||||
public TestContainers(ILogTracer log, IStorage storage, ICreds creds, IServiceConfig config)
|
||||
: base(log, storage, creds, config) { }
|
||||
|
||||
public Guid InstanceId { get; } = Guid.NewGuid();
|
||||
|
||||
public override Task<Guid> GetInstanceId()
|
||||
=> System.Threading.Tasks.Task.FromResult(InstanceId);
|
||||
}
|
Reference in New Issue
Block a user