11 instantiations of TestJSRuntime
Aspire.Dashboard.Tests (11)
LocalBrowserStorageTests.cs (10)
125var testJsonRuntime = new TestJSRuntime(); 156var testJsonRuntime = new TestJSRuntime(); 182var testJsonRuntime = new TestJSRuntime(); 207var testJsonRuntime = new TestJSRuntime(); 228var testJsonRuntime = new TestJSRuntime 247var testJsonRuntime = new TestJSRuntime 266var testJsonRuntime = new TestJSRuntime(); 281var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 300var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 318var localStorage = CreateBrowserLocalStorage(new TestJSRuntime(), circuitOptions);
Shared\InMemoryBrowserLocalStorage.cs (1)
28var jsRuntime = new TestJSRuntime { OnInvoke = HandleLocalStorageCall };
14 references to TestJSRuntime
Aspire.Dashboard.Tests (14)
LocalBrowserStorageTests.cs (11)
125var testJsonRuntime = new TestJSRuntime(); 156var testJsonRuntime = new TestJSRuntime(); 182var testJsonRuntime = new TestJSRuntime(); 207var testJsonRuntime = new TestJSRuntime(); 228var testJsonRuntime = new TestJSRuntime 247var testJsonRuntime = new TestJSRuntime 266var testJsonRuntime = new TestJSRuntime(); 281var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 300var testJsonRuntime = new TestJSRuntime { OnInvoke = _ => throw exception }; 326TestJSRuntime testJsonRuntime, 340private static IBrowserStorage CreateBrowserStorage(TestJSRuntime testJsonRuntime, TestLoggerFactory loggerFactory, bool useSessionStorage)
Model\DashboardCommandExecutorTests.cs (1)
413services.AddSingleton<Microsoft.JSInterop.IJSRuntime, TestJSRuntime>();
Shared\InMemoryBrowserLocalStorage.cs (1)
28var jsRuntime = new TestJSRuntime { OnInvoke = HandleLocalStorageCall };
tests\Shared\TestDialogService.cs (1)
60services.AddSingleton<IJSRuntime, TestJSRuntime>();