11 references to Validate
aspire (2)
Configuration\ConfigSourceService.cs (2)
183
source.
Validate
();
589
source.
Validate
();
Aspire.Cli.Tests (9)
Configuration\AspireConfigFileTests.cs (1)
178
var error = Assert.Throws<ConfigSourceException>(result.ConfigSource.
Validate
);
Configuration\ConfigSourceServiceGitTests.cs (1)
390
source.
Validate
();
Configuration\ConfigSourceServiceTests.cs (7)
732
new ConfigSource { Repository = repository, Path = s_source.Path }.
Validate
();
741
new ConfigSource { Repository = repository.FullName, Path = s_source.Path }.
Validate
();
760
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = repository, Path = s_source.Path }.
Validate
());
769
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = repository, Path = s_source.Path }.
Validate
());
783
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = s_source.Repository, Path = path }.
Validate
());
795
new ConfigSource { Repository = s_source.Repository, Path = s_source.Path, Ref = reference }.
Validate
();
814
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = s_source.Repository, Path = s_source.Path, Ref = reference }.
Validate
()).Message);