27 references to Call
Aspire.Hosting.Native.Core.Tests (27)
ApplicationRevisionTests.cs (3)
45Arguments(("context", Result(context.Integration.Call("getApplicationServer", null))), ("invitation", invitation))))); 223var root = Result(context.Integration.Call("getApplicationServer", null)); 244("context", Result(context.Integration.Call("getApplicationServer", null))),
NativeCliControlTests.cs (8)
23var spec = Result(client.Call("getRuntimeSpec", new JsonArray("typescript/nodejs"))); 24var sdk = Result(client.Call("generateCode", new JsonArray("TypeScript", null))).AsObject(); 56Assert.NotEmpty(Result(client.Call("getCapabilities", null))["Capabilities"]!.AsArray()); 57Assert.Empty(Result(client.Call("getAppHostServerConfiguration", null)).AsArray()); 58Assert.Equal("INVALID_ARGUMENT", Error(client.Call("getAppHostServerConfiguration", new JsonArray("unexpected")))); 59Assert.Equal("INVALID_ARGUMENT", Error(client.Call("generateCode", new JsonArray("TypeScript", "Aspire.Hosting")))); 60Assert.Equal("NOT_SUPPORTED", Error(client.Call("getRuntimeSpec", new JsonArray("python")))); 71Assert.Equal("METHOD_NOT_FOUND", Error(client.Call(method, null)));
NativeRpcTests.cs (4)
19var contract = Result(client.Call("getCapabilities", null)); 27Assert.Equal("UNAUTHENTICATED", Error(client.Call("getCapabilities", null))); 29Assert.False(client.Call("authenticate", new JsonArray("wrong-token"))["result"]!.GetValue<bool>()); 31Assert.True(client.Call("authenticate", new JsonArray(Token))["result"]!.GetValue<bool>());
NativeSocketIsolationTests.cs (1)
137var authorServer = Result(context.Author.Call("getApplicationServer", null));
NativeTimeProviderTests.cs (1)
34var root = Result(client.Call("getApplicationServer", null));
RuntimeRpcTests.cs (1)
58var root = Result(context.Observer.Call("getApplicationServer", null));
TestServices\RpcTestClient.cs (2)
39if (authenticate && Call("authenticate", new JsonArray(Token))["result"]?.GetValue<bool>() != true) 66Call("invokeCapability", new JsonArray(CapabilityId(capability), arguments));
TestServices\RuntimeRpcTestContext.cs (3)
40var root = Result(Author.Call("getApplicationServer", null)); 46("context", Result(Integration.Call("getApplicationServer", null))), 49("context", Result(Observer.Call("getApplicationServer", null))),
TestServices\WorkspaceRpcTestContext.cs (4)
32Arguments(("context", Result(Author.Call("getApplicationServer", null)))))); 38("context", Result(Integration.Call("getApplicationServer", null))), 42("context", Result(Observer.Call("getApplicationServer", null))), 54Arguments(("context", Result(Author.Call("getApplicationServer", null))), ("invitation", invitation))));