11 instantiations of TestJSRuntime
Aspire.Dashboard.Tests (11)
LocalBrowserStorageTests.cs (10)
34var testJsonRuntime = new TestJSRuntime(); 65var testJsonRuntime = new TestJSRuntime(); 91var testJsonRuntime = new TestJSRuntime(); 116var testJsonRuntime = new TestJSRuntime(); 137var testJsonRuntime = new TestJSRuntime 156var testJsonRuntime = new TestJSRuntime 175var testJsonRuntime = new TestJSRuntime(); 190var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 209var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 227var localStorage = CreateBrowserLocalStorage(new TestJSRuntime(), circuitOptions);
Shared\InMemoryBrowserLocalStorage.cs (1)
25var jsRuntime = new TestJSRuntime { OnInvoke = HandleLocalStorageCall };
14 references to TestJSRuntime
Aspire.Dashboard.Tests (14)
LocalBrowserStorageTests.cs (11)
34var testJsonRuntime = new TestJSRuntime(); 65var testJsonRuntime = new TestJSRuntime(); 91var testJsonRuntime = new TestJSRuntime(); 116var testJsonRuntime = new TestJSRuntime(); 137var testJsonRuntime = new TestJSRuntime 156var testJsonRuntime = new TestJSRuntime 175var testJsonRuntime = new TestJSRuntime(); 190var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 209var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 235TestJSRuntime testJsonRuntime, 248private static IBrowserStorage CreateBrowserStorage(TestJSRuntime testJsonRuntime, TestLoggerFactory loggerFactory, bool useSessionStorage)
Model\DashboardCommandExecutorTests.cs (1)
413services.AddSingleton<Microsoft.JSInterop.IJSRuntime, TestJSRuntime>();
Shared\InMemoryBrowserLocalStorage.cs (1)
25var jsRuntime = new TestJSRuntime { OnInvoke = HandleLocalStorageCall };
tests\Shared\TestDialogService.cs (1)
60services.AddSingleton<IJSRuntime, TestJSRuntime>();