2 instantiations of ResourcePropertyViewModel
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
143var propertyViewModel = new ResourcePropertyViewModel(
Aspire.Dashboard.Tests (1)
Model\ResourceSourceViewModelTests.cs (1)
59properties.TryAdd(propertyName, new ResourcePropertyViewModel(propertyName, propertyValue is null ? Value.ForNull() : Value.ForString(propertyValue), false, null, 0));
20 references to ResourcePropertyViewModel
Aspire.Dashboard (12)
Model\ResourceSourceViewModel.cs (1)
35if (resource.Properties.TryGetValue(KnownProperties.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModel.cs (4)
39public required ImmutableDictionary<string, ResourcePropertyViewModel> Properties { get; init; } 74if (Properties.TryGetValue(propertyName, out var value)) 266private readonly ResourcePropertyViewModel _propertyViewModel; 280public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel, IStringLocalizer<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider)
Model\ResourceViewModelExtensions.cs (4)
74if (resource.Properties.TryGetValue(key, out var property) && property.Value.TryConvertToString(out var valueString)) 86if (resource.Properties.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value }) 111if (resource.Properties.TryGetValue(key, out var property) && property is { Value: { ListValue: not null } value }) 136if (resource.Properties.TryGetValue(key, out var property) && property.Value.TryConvertToInt(out i))
ResourceService\Partials.cs (3)
136private ImmutableDictionary<string, ResourcePropertyViewModel> CreatePropertyViewModels(RepeatedField<ResourceProperty> properties, IKnownPropertyLookup knownPropertyLookup, ILogger logger) 138var builder = ImmutableDictionary.CreateBuilder<string, ResourcePropertyViewModel>(StringComparers.ResourcePropertyName); 143var propertyViewModel = new ResourcePropertyViewModel(
Aspire.Dashboard.Components.Tests (3)
Pages\ResourcesTests.cs (1)
376Properties = ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
tests\Shared\DashboardModel\ModelTestHelpers.cs (2)
17Dictionary<string, ResourcePropertyViewModel>? properties = null, 39Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,
Aspire.Dashboard.Tests (5)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
17new KeyValuePair<string, ResourcePropertyViewModel>(
Model\ResourceSourceViewModelTests.cs (1)
18var properties = new Dictionary<string, ResourcePropertyViewModel>();
Model\ResourceStateViewModelTests.cs (1)
72var propertiesDictionary = new Dictionary<string, ResourcePropertyViewModel>();
tests\Shared\DashboardModel\ModelTestHelpers.cs (2)
17Dictionary<string, ResourcePropertyViewModel>? properties = null, 39Properties = properties?.ToImmutableDictionary() ?? ImmutableDictionary<string, ResourcePropertyViewModel>.Empty,