コード例 #1
0
        SourcefileDto GetSourcefileByName(Guid repositoryId, string name)
        {
            RepositoryListDto repository = GetRepositoryListById(repositoryId);

            return(repository.Sourcefiles.Where(sourcefile => sourcefile.Name == name).FirstOrDefault());
        }
コード例 #2
0
        public void AddRepositoryListSourcefile(Guid repositoryListId, int version, SourcefileDto sourcefile)
        {
            RepositoryListDto repositoryList = GetRepositoryListById(repositoryListId);

            repositoryList.AddSourcefile(version, sourcefile);
        }
コード例 #3
0
        public void AddRepositoryListSourcefileTag(Guid repositoryListId, int version, string sourcefilename, string tag)
        {
            RepositoryListDto repository = GetRepositoryListById(repositoryListId);

            repository.AddTag(version, sourcefilename, tag);
        }
コード例 #4
0
 public void AddRepositoryList(RepositoryListDto repositoryList)
 {
     _repositoryLists.Add(repositoryList);
 }