20 references to ModelTestHelpers
Aspire.Dashboard.Tests (20)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (5)
22
ModelTestHelpers
.CreateResource(appName: "App1-r1", state: KnownResourceState.Running, displayName: "App1"),
23
ModelTestHelpers
.CreateResource(appName: "App1-r2", displayName: "App1"),
26
ModelTestHelpers
.CreateResource(appName: "App2", state: KnownResourceState.Starting),
29
ModelTestHelpers
.CreateResource(appName: "App3", state: KnownResourceState.Finished),
32
ModelTestHelpers
.CreateResource(appName: "App4", state: KnownResourceState.Running)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
25
public static readonly ResourceViewModel TestResource1 =
ModelTestHelpers
.CreateResource(
Model\ResourceEndpointHelpersTests.cs (8)
20
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: []));
28
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [new("Test", new("http://localhost:8080"), isInternal: false)]));
44
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [
71
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [
98
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [
125
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [
144
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [
172
var endpoints = GetEndpoints(
ModelTestHelpers
.CreateResource(urls: [
Model\ResourceStateViewModelTests.cs (1)
71
var resource =
ModelTestHelpers
.CreateResource(
Model\ResourceViewModelNameComparerTests.cs (4)
18
ModelTestHelpers
.CreateResource(appName: "database-dashboard-abc", displayName: "database-dashboard"),
19
ModelTestHelpers
.CreateResource(appName: "database-dashboard-xyz", displayName: "database-dashboard"),
20
ModelTestHelpers
.CreateResource(appName: "database-xyz", displayName: "database"),
21
ModelTestHelpers
.CreateResource(appName: "database-abc", displayName: "database"),
ResourceOutgoingPeerResolverTests.cs (1)
17
return
ModelTestHelpers
.CreateResource(