Exemple #1
0
        public void WhenLoadIsCalled_ReturnSavedPath()
        {
            GitConfigurationProvider provider = new GitConfigurationProvider(new RepositoryPathValdiator(), new WebConfig());

            provider.SaveRepositoryPath(_validRepoPath);

            var path = provider.LoadRepositoryPath();

            Assert.Equal(_validRepoPath, path);
        }
Exemple #2
0
        public void OverrideExistingPath()
        {
            GitConfigurationProvider provider = new GitConfigurationProvider(new RepositoryPathValdiator(), new WebConfig());

            provider.SaveRepositoryPath(_validRepoPath);
        }
Exemple #3
0
        public void WhenSectionIsNotConfigured_CreateSection_AndSavePath()
        {
            GitConfigurationProvider provider = new GitConfigurationProvider(new RepositoryPathValdiator(), new WebConfig());

            provider.SaveRepositoryPath(_validRepoPath);
        }