20 references to Convert
Aspire.Hosting.Azure.Provisioning (6)
BicepValueFactory.cs (6)
227
BicepFunction.Concat([.. items.Select(static value => BicepValueProxy.
Convert
<string>(value))]),
243
BicepFunction.CreateGuid([.. items.Select(static value => BicepValueProxy.
Convert
<string>(value))]),
259
BicepFunction.GetUniqueString([.. items.Select(static value => BicepValueProxy.
Convert
<string>(value))]),
275
BicepFunction.GetSubscriptionResourceId([.. items.Select(static value => BicepValueProxy.
Convert
<string>(value))]),
292
BicepValueProxy.
Convert
<string>(value),
293
BicepValueProxy.
Convert
<int>(count)),
Aspire.Hosting.Azure.Provisioning.Tests (14)
BicepValueProxyTests.cs (14)
105
var converted = BicepValueProxy.
Convert
<int>(proxy);
116
var converted = BicepValueProxy.
Convert
<string>(proxy);
129
var converted = BicepValueProxy.
Convert
<IPAddress>(address);
131
var roundTripped = BicepValueProxy.
Convert
<IPAddress>(proxy);
146
Assert.Throws<FormatException>(() => BicepValueProxy.
Convert
<IPAddress>(address));
156
var converted = BicepValueProxy.
Convert
<IPAddress>(proxy);
188
Assert.Throws<FormatException>(() => BicepValueProxy.
Convert
<IPAddress>(proxy));
205
var converted = BicepValueProxy.
Convert
<IPAddress>(proxy);
206
var roundTripped = BicepValueProxy.
Convert
<IPAddress>(BicepValueProxy.Create(converted));
223
var converted = BicepValueProxy.
Convert
<IPAddress>(proxy);
238
var converted = BicepValueProxy.
Convert
<IPAddress>(proxy);
250
var converted = BicepValueProxy.
Convert
<IPAddress>(proxy);
261
var exception = Assert.Throws<ArgumentException>(() => BicepValueProxy.
Convert
<IPAddress>(proxy));
284
var exception = Assert.Throws<ArgumentException>(() => BicepValueProxy.
Convert
<string>(proxy));