public プロダクトリリーススケジュール時(
     テナントId tenantId,
     プロダクトId productId,
     リリースId releaseId,
     string name,
     string description,
     DateTime starts,
     DateTime ends)
 {
     this.Description = description;
     this.Ends = ends;
     this.EventVersion = 1;
     this.Name = name;
     this.OccurredOn = DateTime.Now;
     this.ProductId = productId;
     this.ReleaseId = releaseId;
     this.Starts = starts;
     this.TenantId = tenantId;
 }
示例#2
0
        public リリース(
            テナントId tenantId,
            プロダクトId productId,
            リリースId releaseId,
            string name,
            string description,
            DateTime begins,
            DateTime ends)
        {
            if (ends.Ticks < begins.Ticks)
                throw new InvalidOperationException("Release must not end before it begins.");

            this.Begins = begins;
            this.Description = description;
            this.Ends = ends;
            this.Name = name;
            this.ProductId = productId;
            this.ReleaseId = releaseId;
            this.TenantId = tenantId;
            this.backlogItems = new HashSet<計画済みバックログアイテム>();
        }