11 references to Validate
aspire (2)
Configuration\ConfigSourceService.cs (2)
172
source.
Validate
();
423
source.
Validate
();
Aspire.Cli.Tests (9)
Configuration\AspireConfigFileTests.cs (1)
87
var error = Assert.Throws<ConfigSourceException>(result.ConfigSource.
Validate
);
Configuration\ConfigSourceServiceGitTests.cs (1)
385
source.
Validate
();
Configuration\ConfigSourceServiceTests.cs (7)
596
new ConfigSource { Repository = repository, Path = s_source.Path }.
Validate
();
605
new ConfigSource { Repository = repository.FullName, Path = s_source.Path }.
Validate
();
624
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = repository, Path = s_source.Path }.
Validate
());
633
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = repository, Path = s_source.Path }.
Validate
());
647
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = s_source.Repository, Path = path }.
Validate
());
659
new ConfigSource { Repository = s_source.Repository, Path = s_source.Path, Ref = reference }.
Validate
();
678
Assert.Throws<ConfigSourceException>(() => new ConfigSource { Repository = s_source.Repository, Path = s_source.Path, Ref = reference }.
Validate
()).Message);