-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAzureStorageQueuesEndToEndTestBase.cs
More file actions
28 lines (24 loc) · 896 Bytes
/
AzureStorageQueuesEndToEndTestBase.cs
File metadata and controls
28 lines (24 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using BuslyCLI.Config.Transports;
using Testcontainers.Azurite;
using TransportConfig = BuslyCLI.Config.TransportConfig;
namespace BuslyCLI.Console.Tests.EndToEnd.AzureStorageQueues;
public abstract class AzureStorageQueuesEndToEndTestBase : SingletonTestFixtureBase<AzuriteContainer>
{
protected override TransportConfig CreateTransportConfig() => new()
{
AzureStorageQueuesTransportConfig = new AzureStorageQueuesTransportConfig
{
ConnectionString = Container.GetConnectionString()
}
};
protected override AzuriteContainer CreateContainer()
{
return new AzuriteBuilder("mcr.microsoft.com/azure-storage/azurite")
.WithCommand("--skipApiVersionCheck")
.Build();
}
protected override async Task StartContainerAsync(AzuriteContainer container)
{
await container.StartAsync();
}
}