Exemplo n.º 1
0
        SourcefileDto GetSourcefileByName(Guid repositoryId, string name)
        {
            RepositoryListDto repository = GetRepositoryListById(repositoryId);

            return(repository.Sourcefiles.Where(sourcefile => sourcefile.Name == name).FirstOrDefault());
        }
Exemplo n.º 2
0
        public void AddRepositoryListSourcefile(Guid repositoryListId, int version, SourcefileDto sourcefile)
        {
            RepositoryListDto repositoryList = GetRepositoryListById(repositoryListId);

            repositoryList.AddSourcefile(version, sourcefile);
        }
Exemplo n.º 3
0
        public void AddRepositoryListSourcefileTag(Guid repositoryListId, int version, string sourcefilename, string tag)
        {
            RepositoryListDto repository = GetRepositoryListById(repositoryListId);

            repository.AddTag(version, sourcefilename, tag);
        }
Exemplo n.º 4
0
 public void AddRepositoryList(RepositoryListDto repositoryList)
 {
     _repositoryLists.Add(repositoryList);
 }