Esempio n. 1
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);
        }
Esempio n. 2
0
        void Initialize()
        {
            var repositories = _readModel.GetAllRepositories().ToList();

            foreach (RepositoryListDto currentRepository in repositories)
            {
                RepositoryViewModel newRepositoryViewModel = _repositoryFactory(currentRepository);

                _repositories.Add(newRepositoryViewModel);
            }
        }