20 lines
578 B
C#
20 lines
578 B
C#
namespace MxGateway.Client.Tests;
|
|
|
|
public sealed class MxGatewayGeneratedContractTests
|
|
{
|
|
/// <summary>Verifies that the generated gRPC client can be instantiated from the client factory.</summary>
|
|
[Fact]
|
|
public async Task GeneratedGrpcClient_CanBeConstructedFromClientFactory()
|
|
{
|
|
var options = new MxGatewayClientOptions
|
|
{
|
|
Endpoint = new Uri("http://localhost:5000"),
|
|
ApiKey = "test-api-key",
|
|
};
|
|
|
|
await using var client = MxGatewayClient.Create(options);
|
|
|
|
Assert.NotNull(client.RawClient);
|
|
}
|
|
}
|