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