public Project(string projectName, string description, string fileContentType, User creator) { var initialSnapshot = new ProjectSnapshot { Name = projectName, Description = description, Author = creator }; Snapshots = new List <ProjectSnapshot>() { initialSnapshot }; Name = projectName; FileContentType = fileContentType; Creator = creator; }
public Comment(ProjectSnapshot projectSnapshot, User author) { ProjectSnapshot = projectSnapshot ?? throw new ArgumentNullException(nameof(projectSnapshot)); Author = author ?? throw new ArgumentNullException(nameof(author)); }