40 references to GetProperty
Aspire.Hosting.Tests (40)
Dcp\ResourceSnapshotBuilderTests.cs (40)
158Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 161Assert.Equal(configuration, GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 168Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 169Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 213Assert.Equal("azure-functions", GetProperty(snapshot, KnownProperties.Resource.LaunchConfigurationType).Value); 223Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 265Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 266Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 311Assert.Equal("/app/project.csproj", GetProperty(snapshot, KnownProperties.Project.Path).Value); 312Assert.Equal(executablePath, GetProperty(snapshot, KnownProperties.Executable.Path).Value); 313Assert.Equal(1234, GetProperty(snapshot, KnownProperties.Executable.Pid).Value); 314Assert.Equal("direct", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 318Assert.Equal(targetPath, GetProperty(snapshot, KnownProperties.Project.TargetPath).Value); 319Assert.Equal(useAppHost, GetProperty(snapshot, KnownProperties.Project.UseAppHost).Value); 320Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 321Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 418Assert.Equal(expectedLaunchCommand, Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value)); 419Assert.Equal("Release", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.Configuration).Value)); 420Assert.Equal("net10.0", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value)); 421Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 422Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 423Assert.False(GetProperty(snapshot, KnownProperties.Project.Configuration).IsSensitive); 424Assert.False(GetProperty(snapshot, KnownProperties.Project.TargetFramework).IsSensitive); 465Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 509Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 577Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 603Assert.Equal(launchCommand, GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 604Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 605Assert.Equal("net10.0", GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value); 626var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 650var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 674Assert.Equal("python", GetProperty(snapshot, propertyName).Value); 675Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 681Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 690Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 764Assert.True(GetProperty(snapshot, KnownProperties.Resource.AppArgs).IsSensitive); 765Assert.True(GetProperty(snapshot, KnownProperties.Resource.AppArgsSensitivity).IsSensitive); 877var property = GetProperty(snapshot, name); 886var property = GetProperty(snapshot, name); 895var property = GetProperty(snapshot, name);