public ScheduledBacklogItem(TenantId tenantId, ReleaseId releaseId, BacklogItemId backlogItemId, int ordering = 0)
 {
     this.TenantId = tenantId;
     this.ReleaseId = releaseId;
     this.BacklogItemId = backlogItemId;
     this.Ordering = ordering;
 }
        public BacklogItemUnscheduled(TenantId tenantId, BacklogItemId backlogItemId, ReleaseId unscheduledReleaseId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.UnscheduledReleaseId = unscheduledReleaseId;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
Пример #3
0
        public Release(TenantId tenantId, ProductId productId, ReleaseId releaseId, string name, string description, DateTime begins, DateTime ends)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.ReleaseId = releaseId;
            this.Name = name;
            this.Description = description;
            this.Begins = begins;
            this.Ends = ends;

            _backlogItems = new HashSet<ScheduledBacklogItem>();
        }
        public ProductReleaseScheduled(TenantId tenantId, ProductId productId, ReleaseId releaseId, string name,
            string description, DateTime starts, DateTime ends)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.ReleaseId = releaseId;
            this.Name = name;
            this.Description = description;
            this.Starts = starts;
            this.Ends = ends;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
Пример #5
0
        public Release ScheduleRelease(ReleaseId newReleaseId, string name, string description, DateTime begins,
            DateTime ends)
        {
            Release release = new Release(this.TenantId, this.ProductId, newReleaseId, name, description, begins, ends);

            DomainEventPublisher.Instance.Publish(new ProductReleaseScheduled(release.TenantId, release.ProductId,
                release.ReleaseId, release.Name, release.Description, release.Begins, release.Ends));

            return release;
        }