25 lines
614 B
C#
25 lines
614 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using MxGateway.Worker.MxAccess;
|
|
|
|
namespace MxGateway.Worker.Tests.MxAccess;
|
|
|
|
public sealed class MxAccessLiveComCreationTests
|
|
{
|
|
[Fact]
|
|
public async Task StartAsync_WhenOptedIn_CreatesInstalledMxAccessComObjectOnSta()
|
|
{
|
|
if (!string.Equals(
|
|
Environment.GetEnvironmentVariable("MXGATEWAY_RUN_LIVE_MXACCESS_TESTS"),
|
|
"1",
|
|
StringComparison.Ordinal))
|
|
{
|
|
return;
|
|
}
|
|
|
|
using MxAccessStaSession session = new();
|
|
|
|
await session.StartAsync(workerProcessId: 1234);
|
|
}
|
|
}
|