CapabilityDispatcherTests.cs (114)
94dispatcher.Invoke("Aspire.Hosting/withTerminal", new JsonObject
149var result = dispatcher.Invoke("Aspire.Hosting/withTerminal", args);
201var exception = Assert.Throws<CapabilityException>(() => dispatcher.Invoke("Aspire.Hosting/withTerminal", args));
250dispatcher.Invoke("test/capability@1", null);
266dispatcher.Invoke("test/capability@1", new JsonObject { ["name"] = "test-value" });
277var result = dispatcher.Invoke("test/capability@1", null);
289dispatcher.Invoke("nonexistent/capability@1", null));
307dispatcher.Invoke("test/capability@1", null));
326dispatcher.Invoke("test/capability@1", null));
344dispatcher.Invoke("test/capability@1", null));
358dispatcher.Invoke("test/capability@1", null));
379var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/testMethod", args);
391var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withOptional", args);
403var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withOptional", args);
416dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/throwsArgumentException", args));
458var nameResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", args);
459var countResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.count", args);
473dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", null));
486dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", args));
498dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", args));
514var tokenResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestCancellationTokenContext.cancellationToken", getArgs);
520var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/canObserveCancellation", invokeArgs);
575var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestParentContextType.nestedContext", args);
592var operationResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestNestedContextType.operation", nestedArgs);
656dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setName", args);
676dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setCount", args);
695dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setIsEnabled", args);
715dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setName", args));
746dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.doSomething", args);
766var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.calculateSum", args);
786var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.processAsync", args);
806var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.processValueTaskAsync", args);
818var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncValueTaskWithResult", args);
863var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withCallback", args);
885dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/invokeCallback", args);
906dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/invokeTypedCallback", args);
929var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withAsyncCallback", args);
941var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/syncInlineThreadProbe", null);
953var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/syncBackgroundThreadProbe", null);
965var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/taskBackgroundThreadProbe", null);
979dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/nonGenericTaskBackgroundThreadProbe", null);
990var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/valueTaskBackgroundThreadProbe", null);
1004dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/nonGenericValueTaskBackgroundThreadProbe", null);
1021dispatcher.Invoke(
1045dispatcher.Invoke(
1073dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withCallback", args));
1098dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncVoid", args);
1107var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncWithResult", args);
1120dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncThrows", args));
1136var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/sumArray", args);
1148var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnArray", args);
1168var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptReadOnlyList", args);
1181var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args);
1193var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args);
1211var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptDtoUnion", args);
1223var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnumStringUnion", args);
1235var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnumStringUnion", args);
1254dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnumStringUnion", args));
1276var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptHandleUnion", args);
1292dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args));
1313dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args));
1328var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1344var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1355var result = dispatcher.Invoke("Aspire.Hosting/List.get", args);
1367var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnTypedMutableList", null);
1377var result = dispatcher.Invoke("Aspire.Hosting/List.get", args);
1390var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1400var removeResult = dispatcher.Invoke("Aspire.Hosting/List.removeAt", removeArgs);
1410var lengthResult = dispatcher.Invoke("Aspire.Hosting/List.length", lengthArgs);
1423var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1432var result = dispatcher.Invoke("Aspire.Hosting/List.length", args);
1445var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1454dispatcher.Invoke("Aspire.Hosting/List.clear", clearArgs);
1461var lengthResult = dispatcher.Invoke("Aspire.Hosting/List.length", lengthArgs);
1474var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1490var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1501var result = dispatcher.Invoke("Aspire.Hosting/Dict.get", args);
1513var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnTypedMutableDict", null);
1523var result = dispatcher.Invoke("Aspire.Hosting/Dict.get", args);
1535var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnIntKeyMutableDict", null);
1545var result = dispatcher.Invoke("Aspire.Hosting/Dict.get", args);
1558var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1568var removeResult = dispatcher.Invoke("Aspire.Hosting/Dict.remove", removeArgs);
1578var countResult = dispatcher.Invoke("Aspire.Hosting/Dict.count", countArgs);
1591var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1601var hasResult = dispatcher.Invoke("Aspire.Hosting/Dict.has", hasArgs);
1612var hasResult2 = dispatcher.Invoke("Aspire.Hosting/Dict.has", hasArgs2);
1625var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1634var result = dispatcher.Invoke("Aspire.Hosting/Dict.keys", args);
1650var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnIntKeyMutableDict", null);
1659var result = dispatcher.Invoke("Aspire.Hosting/Dict.keys", args);
1674var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnIntKeyMutableDict", null);
1683var ex = Assert.Throws<CapabilityException>(() => dispatcher.Invoke("Aspire.Hosting/Dict.toObject", args));
1694var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1703var result = dispatcher.Invoke("Aspire.Hosting/Dict.count", args);
1720var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnum", args);
1737var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnum", args);
1754var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnEnum", args);
1771var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptOptionalEnum", args);
1783var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptOptionalEnum", new JsonObject());
1872var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.color", args);
1893dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.setColor", args);
1913var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithMethods.greet", args);
1930var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.color", args);
1947var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.name", args);
1963dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.color", args));
1987dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withReference", args));
2010dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withEndpoint", args));
2032dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withHttpEndpoint", args));
2054dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withHttpEndpoint", args));
2075dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withHttpEndpoint", args));
2102dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.setColor", args));
2130dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withReference", args));
2290var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/findConnectionPropertyKey", args);