Esempio n. 1
0
        public async Task GetSourcesAsync_SetOneDependencyInRepository_ReturnProperProjectName()
        {
            var reposPath = Settings.Instanse.PathToTestData + Settings.OneDepndencyInRepository;

            var             fileRepos = new FilesStrategy(reposPath);
            IRepositoryData data      = new FileSystemRepository
            {
                Name = reposPath,
                Path = reposPath
            };
            var result = await fileRepos.GetSourcesAsync(data);

            Assert.Equal("ServiceName", result.ProjectName);
        }
Esempio n. 2
0
        public async Task GetSourcesAsync_SetOneDependencyInRepository_ReturnOneDependencyFile()
        {
            var reposPath = Settings.Instanse.PathToTestData + Settings.OneDepndencyInRepository;

            var             fileRepos = new FilesStrategy(reposPath);
            IRepositoryData data      = new FileSystemRepository
            {
                Name = reposPath,
                Path = reposPath
            };
            var result = await fileRepos.GetSourcesAsync(data);

            Assert.Single(result.Files);
        }