27 references to CallAsync
Aspire.Hosting.Native.Core.Tests (27)
NativeCliProtocolTests.cs (1)
122
(await replacement.
CallAsync
("GetCapabilitiesAsync", null, timeout.Token))["result"]!
NativeNamedPipeTests.cs (5)
26
var unauthenticated = await second.
CallAsync
("getApplicationServer", null, timeout.Token);
28
Assert.True((await first.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
29
Assert.True((await second.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
30
Assert.NotNull((await first.
CallAsync
("getApplicationServer", null, timeout.Token))["result"]);
31
Assert.NotNull((await second.
CallAsync
("getCapabilities", null, timeout.Token))["result"]);
NativeProviderClientTests.cs (2)
56
await provider.
CallAsync
("authenticate", new JsonArray(host.Token), cancellationToken);
127
await provider.
CallAsync
("authenticate", new JsonArray(host.Token), deadline.Token);
NativeSocketIsolationTests.cs (19)
34
var error = (await unauthenticated.
CallAsync
("getApplicationServer", null, timeout.Token))["error"]!;
38
Assert.True((await authenticated.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
42
Assert.NotNull((await authenticated.
CallAsync
("getCapabilities", null, timeout.Token))["result"]);
69
var response = await client.
CallAsync
("Fail", null, TestContext.Current.CancellationToken);
74
Assert.Equal("ok", (await client.
CallAsync
("Succeed", null, TestContext.Current.CancellationToken))["result"]!.GetValue<string>());
77
Assert.Equal("ok", (await subsequent.
CallAsync
("Succeed", null, TestContext.Current.CancellationToken))["result"]!.GetValue<string>());
99
Assert.True((await existing.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
106
Assert.NotNull((await existing.
CallAsync
("getCapabilities", null, timeout.Token))["result"]);
108
Assert.True((await subsequent.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
135
await failing.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token);
136
var server = Result(await failing.
CallAsync
("getApplicationServer", null, timeout.Token));
144
var writer = Result(await failing.
CallAsync
("invokeCapability", new JsonArray("Aspire.Hosting.Native.Api/joinResourceExecution",
146
var response = await failing.
CallAsync
("invokeCapability", new JsonArray("Aspire.Hosting.Native.Api/startContainer",
156
Assert.NotNull((await failing.
CallAsync
("getCapabilities", null, timeout.Token))["result"]);
158
Assert.True((await subsequent.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());
194
var response = await next.
CallAsync
("GetCapabilitiesAsync", null, timeout.Token);
232
Assert.Equal("ready", (await next.
CallAsync
("ready", null, timeout.Token))["result"]!.GetValue<string>());
251
Assert.Equal("ready", (await next.
CallAsync
("ready", null, timeout.Token))["result"]!.GetValue<string>());
314
Assert.True((await client.
CallAsync
("authenticate", new JsonArray(Token), timeout.Token))["result"]!.GetValue<bool>());