7 references to InvokeAsync
Aspire.Hosting.RemoteHost.Tests (7)
JsonRpcAuthenticationTests.cs (7)
43
var result = await client.
InvokeAsync
<string>("ping");
57
() => client.
InvokeAsync
<JsonElement?>(methodName, arguments));
69
Assert.Equal("pong", await client.
InvokeAsync
<string>("ping"));
74
await Assert.ThrowsAnyAsync<Exception>(() => client.
InvokeAsync
<string>("ping"));
75
await Assert.ThrowsAnyAsync<Exception>(() => client.
InvokeAsync
<bool>("cancelToken", ["ct_missing"]));
82
var authenticated = await client.
InvokeAsync
<bool>("authenticate", ["wrong-token"]);
101
Assert.Equal("pong", await client.
InvokeAsync
<string>("ping"));