23 references to WithData
Aspire.Hosting.Radius (1)
Secrets\RadiusSecretStoreExtensions.cs (1)
184return store.WithData(s => s.Add(key, parameter, encoding));
Aspire.Hosting.Radius.Tests (22)
Publishing\InlineSecretStoreBicepTests.cs (2)
36s.WithData(d => { d.Add("username", user); d.Add("password", pass); })); 59s.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); }); 52env.WithSecretStore("db-creds", RadiusSecretStoreType.Generic, s => s.WithData(d => d.Add("k", pass)));
Secrets\AddRadiusSecretStoreTests.cs (7)
39s.WithData(d => d.Add("api-key", pass))); 58s.WithData(d => { d.Add("username", user); d.Add("password", pass); })); 76.WithData(d => { d.Add("username", user); d.Add("password", pass); }); 146Assert.Throws<ArgumentException>(() => store.WithData(d => d.Add(" ", pass))); 158store.WithData(d => { d.Add("password", pass); d.Add("password", pass); })); 218.WithData(d => d.Add("k", pass)); 299var 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 => 232builder.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))