public void WhenLoadIsCalled_ReturnSavedPath() { GitConfigurationProvider provider = new GitConfigurationProvider(new RepositoryPathValdiator(), new WebConfig()); provider.SaveRepositoryPath(_validRepoPath); var path = provider.LoadRepositoryPath(); Assert.Equal(_validRepoPath, path); }
public void OverrideExistingPath() { GitConfigurationProvider provider = new GitConfigurationProvider(new RepositoryPathValdiator(), new WebConfig()); provider.SaveRepositoryPath(_validRepoPath); }
public void WhenSectionIsNotConfigured_CreateSection_AndSavePath() { GitConfigurationProvider provider = new GitConfigurationProvider(new RepositoryPathValdiator(), new WebConfig()); provider.SaveRepositoryPath(_validRepoPath); }