23 references to WithData
Aspire.Hosting.Radius (1)
Secrets\RadiusSecretStoreExtensions.cs (1)
186
return store.
WithData
(s => s.Add(key, parameter, encoding));
Aspire.Hosting.Radius.Tests (22)
Publishing\InlineSecretStoreBicepTests.cs (2)
37
s.
WithData
(d => { d.Add("username", user); d.Add("password", pass); }));
60
s.
WithData
(d => { d.Add("tls.crt", crt); d.Add("tls.key", key); }));
Publishing\SecretStoreConsumerBicepTests.cs (2)
24
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
53
env.WithSecretStore("db-creds", RadiusSecretStoreType.Generic, s => s.
WithData
(d => d.Add("k", pass)));
Secrets\AddRadiusSecretStoreTests.cs (7)
40
s.
WithData
(d => d.Add("api-key", pass)));
59
s.
WithData
(d => { d.Add("username", user); d.Add("password", pass); }));
77
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
147
Assert.Throws<ArgumentException>(() => store.
WithData
(d => d.Add(" ", pass)));
159
store.
WithData
(d => { d.Add("password", pass); d.Add("password", pass); }));
219
.
WithData
(d => d.Add("k", pass));
300
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)
38
.
WithData
(d => d.Add("password", pass));
54
.
WithData
(d => d.Add("password", pass));
Secrets\SecretStoreValidationTests.cs (8)
170
.
WithData
(d => d.Add("k", p));
187
.
WithData
(d => d.Add("k", notSecret));
215
.
WithData
(d =>
233
builder.AddRadiusSecretStore("db-creds", RadiusSecretStoreType.Generic).
WithData
(d => d.Add("k", p));
266
.
WithData
(d => { d.Add("username", user); d.Add("password", pass); });
282
.
WithData
(d => { d.Add("username", user); d.Add("pat", pat); });
297
.
WithData
(d => d.Add("password", pass));
313
.
WithData
(d => d.Add("k", p))