Esempio n. 1
0
        /// <summary>
        /// Constructor is used internally within the domain model to create a task with a specific user as the creator.
        /// </summary>
        /// <param name="description">A brief description of the task.</param>
        /// <param name="creator">The creator of the task.</param>
        internal Task(string description, User creator)
        {
            description.ThrowIfNullOrEmpty();
            Description = description;

            creator.ThrowIfNull();
            CreatedBy = creator;
            AssignedTo = creator;
            ModifiedBy = creator;
        }