7 references to InvokeAsync
Aspire.Hosting.RemoteHost.Tests (7)
JsonRpcAuthenticationTests.cs (7)
39
var result = await client.
InvokeAsync
<string>("ping");
53
() => client.
InvokeAsync
<JsonElement?>(methodName, arguments));
65
Assert.Equal("pong", await client.
InvokeAsync
<string>("ping"));
70
await Assert.ThrowsAnyAsync<Exception>(() => client.
InvokeAsync
<string>("ping"));
71
await Assert.ThrowsAnyAsync<Exception>(() => client.
InvokeAsync
<bool>("cancelToken", ["ct_missing"]));
78
var authenticated = await client.
InvokeAsync
<bool>("authenticate", ["wrong-token"]);
97
Assert.Equal("pong", await client.
InvokeAsync
<string>("ping"));