コード例 #1
0
 public ScheduledBacklogItem(TenantId tenantId, ReleaseId releaseId, BacklogItemId backlogItemId, int ordering = 0)
 {
     this.TenantId      = tenantId;
     this.ReleaseId     = releaseId;
     this.BacklogItemId = backlogItemId;
     this.Ordering      = ordering;
 }
コード例 #2
0
 public ScheduledBacklogItem(TenantId tenantId, ReleaseId releaseId, BacklogItemId backlogItemId, int ordering = 0)
 {
     TenantId      = tenantId;
     ReleaseId     = releaseId;
     BacklogItemId = backlogItemId;
     Ordering      = ordering;
 }
コード例 #3
0
 public override int GetHashCode()
 {
     return
         (+(73281 * 47)
          + TenantId.GetHashCode()
          + ReleaseId.GetHashCode()
          + BacklogItemId.GetHashCode());
 }
コード例 #4
0
        public bool Equals(ScheduledBacklogItem other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            return(TenantId.Equals(other.TenantId) &&
                   ReleaseId.Equals(other.ReleaseId) &&
                   BacklogItemId.Equals(other.BacklogItemId));
        }
コード例 #5
0
        public Release(
            TenantId tenantId,
            ProductId productId,
            ReleaseId releaseId,
            string name,
            string description,
            DateTime begins,
            DateTime ends)
        {
            if (ends.Ticks < begins.Ticks)
            {
                throw new InvalidOperationException("Release must not end before it begins.");
            }

            Begins        = begins;
            Description   = description;
            Ends          = ends;
            Name          = name;
            ProductId     = productId;
            ReleaseId     = releaseId;
            TenantId      = tenantId;
            _backlogItems = new HashSet <ScheduledBacklogItem>();
        }