4 writes to TargetType
Aspire.Hosting (4)
44 references to TargetType
Aspire.Hosting (1)
Aspire.Hosting.CodeGeneration.Go (4)
Aspire.Hosting.CodeGeneration.Java (4)
Aspire.Hosting.CodeGeneration.Python (4)
Aspire.Hosting.CodeGeneration.Rust (4)
Aspire.Hosting.CodeGeneration.TypeScript (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (24)
AtsTypeScriptCodeGeneratorTests.cs (24)
374TargetType = c.TargetType != null ? new { c.TargetType.TypeId, c.TargetType.IsInterface } : null,
411Assert.NotNull(cap.TargetType);
412Assert.False(cap.TargetType.IsInterface,
442Assert.NotNull(withBindMount.TargetType);
443Assert.Equal("Aspire.Hosting/Aspire.Hosting.ApplicationModel.ContainerResource", withBindMount.TargetType.TypeId);
444Assert.False(withBindMount.TargetType.IsInterface,
450Assert.NotNull(withEnvironment.TargetType);
451Assert.True(withEnvironment.TargetType.IsInterface,
471Assert.NotNull(withConnectionStringDirect.TargetType);
472Assert.Contains("IResourceWithConnectionString", withConnectionStringDirect.TargetType.TypeId);
473Assert.True(withConnectionStringDirect.TargetType.IsInterface);
499Assert.NotNull(withRedisSpecific.TargetType);
500Assert.Contains("TestRedisResource", withRedisSpecific.TargetType.TypeId);
501Assert.False(withRedisSpecific.TargetType.IsInterface, "TestRedisResource is a concrete type");
525Assert.NotNull(withBindMount.TargetType);
526Assert.Contains("ContainerResource", withBindMount.TargetType.TypeId);
527Assert.False(withBindMount.TargetType.IsInterface);
621Assert.NotNull(withConnectionStringDirect.TargetType);
622Assert.True(withConnectionStringDirect.TargetType.IsInterface,
655Assert.NotNull(testWithEnvironmentCallback.TargetType);
656Assert.Contains("IResourceWithEnvironment", testWithEnvironmentCallback.TargetType.TypeId);
657Assert.True(testWithEnvironmentCallback.TargetType.IsInterface,
aspire-server (2)