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