Beispiel #1
0
        void AddSourcefile(SourcefileDto sourcefile)
        {
            SourcefileViewModel newSourcefile = _sourcefileFactory(sourcefile);

            newSourcefile.AddTags(sourcefile.Tags);

            _sourcefiles.Add(newSourcefile);
        }
Beispiel #2
0
        public void TagSourcefile(SourcefileViewModel sourcefile)
        {
            RepositoryViewModel repository = GetRepositoryById(sourcefile.RepositoryId);

            _commandSender.Send(new TagSourcefile(repository.Id, sourcefile.Name, NewTag, repository.Version));

            var tags = _readModel.GetTagsBySourcefile(repository.Id, sourcefile.Name);

            sourcefile.AddTags(tags);
        }
        public void TagSourcefile(SourcefileViewModel sourcefile)
        {
            RepositoryViewModel repository = GetRepositoryById(sourcefile.RepositoryId);

            _commandSender.Send(new TagSourcefile(repository.Id, sourcefile.Name, NewTag, repository.Version));

            var tags = _readModel.GetTagsBySourcefile(repository.Id, sourcefile.Name);

            sourcefile.AddTags(tags);
        }