Exemple #1
0
        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;
        }
Exemple #2
0
 public Comment(ProjectSnapshot projectSnapshot, User author)
 {
     ProjectSnapshot = projectSnapshot ?? throw new ArgumentNullException(nameof(projectSnapshot));
     Author          = author ?? throw new ArgumentNullException(nameof(author));
 }