public void Tag(string sourcefile, string newTag) { if (string.IsNullOrWhiteSpace(sourcefile)) { throw new ArgumentNullException("sourcefile"); } if (string.IsNullOrWhiteSpace(newTag)) { throw new ArgumentNullException("newTag"); } _eventApplier.Apply(new SourcefileTagged(_id, sourcefile, newTag)); }
public Repository(Guid id, string name, List <string> sourcefilenames) { _eventApplier = new EventApplier(this); _eventApplier.Apply(new RepositoryImported(id, name)); _sourcefilenames = new List <Sourcefile>(); ImportSourcefiles(sourcefilenames); }