23 references to WithData
Aspire.Hosting.Radius (1)
Secrets\RadiusSecretStoreExtensions.cs (1)
184
return store.
WithData
(s => s.Add(key, parameter, encoding));
Aspire.Hosting.Radius.Tests (22)
Publishing\InlineSecretStoreBicepTests.cs (2)
36
s.
WithData
(d => { d.Add("username", user); d.Add("password", pass); }));
59
s.
WithData
(d => { d.Add("tls.crt", crt); d.Add("tls.key", key); }));
Publishing\SecretStoreConsumerBicepTests.cs (2)
23
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
52
env.WithSecretStore("db-creds", RadiusSecretStoreType.Generic, s => s.
WithData
(d => d.Add("k", pass)));
Secrets\AddRadiusSecretStoreTests.cs (7)
39
s.
WithData
(d => d.Add("api-key", pass)));
58
s.
WithData
(d => { d.Add("username", user); d.Add("password", pass); }));
76
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
146
Assert.Throws<ArgumentException>(() => store.
WithData
(d => d.Add(" ", pass)));
158
store.
WithData
(d => { d.Add("password", pass); d.Add("password", pass); }));
218
.
WithData
(d => d.Add("k", pass));
299
var ex = Assert.Throws<ArgumentException>(() => store.
WithData
(d => d.Add(key, pass)));
Secrets\SecretStoreConsumerTests.cs (1)
22
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
Secrets\SecretStoreDefaultPathTests.cs (2)
37
.
WithData
(d => d.Add("password", pass));
53
.
WithData
(d => d.Add("password", pass));
Secrets\SecretStoreValidationTests.cs (8)
169
.
WithData
(d => d.Add("k", p));
186
.
WithData
(d => d.Add("k", notSecret));
214
.
WithData
(d =>
232
builder.AddRadiusSecretStore("db-creds", RadiusSecretStoreType.Generic).
WithData
(d => d.Add("k", p));
265
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
281
.
WithData
(d => { d.Add("username", user); d.Add("pat", pat); });
296
.
WithData
(d => d.Add("password", pass));
312
.
WithData
(d => d.Add("k", p))