23 references to Convert
Aspire.Hosting.Azure.Provisioning (6)
BicepValueFactory.cs (6)
227BicepFunction.Concat([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 243BicepFunction.CreateGuid([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 259BicepFunction.GetUniqueString([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 275BicepFunction.GetSubscriptionResourceId([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 292BicepValueProxy.Convert<string>(value), 293BicepValueProxy.Convert<int>(count)),
Aspire.Hosting.Azure.Provisioning.Tests (17)
BicepValueProxyTests.cs (17)
90var converted = BicepValueProxy.Convert<ProvisioningValueType>(proxy); 128Assert.Throws<ArgumentException>(() => BicepValueProxy.Convert<ProvisioningValueType>(proxy)); 138var converted = BicepValueProxy.Convert<ProvisioningValueType>(proxy); 182var converted = BicepValueProxy.Convert<int>(proxy); 193var converted = BicepValueProxy.Convert<string>(proxy); 206var converted = BicepValueProxy.Convert<IPAddress>(address); 208var roundTripped = BicepValueProxy.Convert<IPAddress>(proxy); 223Assert.Throws<FormatException>(() => BicepValueProxy.Convert<IPAddress>(address)); 233var converted = BicepValueProxy.Convert<IPAddress>(proxy); 265Assert.Throws<FormatException>(() => BicepValueProxy.Convert<IPAddress>(proxy)); 282var converted = BicepValueProxy.Convert<IPAddress>(proxy); 283var roundTripped = BicepValueProxy.Convert<IPAddress>(BicepValueProxy.Create(converted)); 300var converted = BicepValueProxy.Convert<IPAddress>(proxy); 315var converted = BicepValueProxy.Convert<IPAddress>(proxy); 327var converted = BicepValueProxy.Convert<IPAddress>(proxy); 338var exception = Assert.Throws<ArgumentException>(() => BicepValueProxy.Convert<IPAddress>(proxy)); 361var exception = Assert.Throws<ArgumentException>(() => BicepValueProxy.Convert<string>(proxy));