public void ReOrderFrom(BacklogItemId id, int orderOfPriority)
 {
     if (BacklogItemId.Equals(id))
     {
         Ordering = orderOfPriority;
     }
     else if (Ordering >= orderOfPriority)
     {
         Ordering = Ordering + 1;
     }
 }
Ejemplo n.º 2
0
 internal void ReorderFrom(BacklogItemId id, int ordering)
 {
     if (BacklogItemId.Equals(id))
     {
         Ordering = ordering;
     }
     else if (Ordering >= ordering)
     {
         Ordering = Ordering + 1;
     }
 }
Ejemplo n.º 3
0
        public void IdsAreEqual()
        {
            var guid = Guid.NewGuid();

            var id0 = new BacklogItemId(guid);
            var id1 = new BacklogItemId(guid);

            Assert.True(id0.Equals(id1));
            Assert.Equal(id0, id1);
            Assert.True(id0 == id1);
            Assert.False(id0 != id1);
        }
Ejemplo n.º 4
0
        public void TestEntityIdentityEquality()
        {
            var guid = Guid.NewGuid();

            var id0 = new BacklogItemId(guid);
            var id1 = new BacklogItemId(guid);

            Assert.True(id0.Equals(id1));
            Assert.Equal(id0, id1);
            Assert.True(id0 == id1);
            Assert.False(id0 != id1);
        }
        public bool Equals(CommittedBacklogItem other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            return(TenantId.Equals(other.TenantId) &&
                   SprintId.Equals(other.SprintId) &&
                   BacklogItemId.Equals(other.BacklogItemId));
        }
Ejemplo n.º 6
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));
        }
Ejemplo n.º 7
0
        public bool Equals(ProductBacklogItem other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            return(TenantId.Equals(other.TenantId) &&
                   ProductId.Equals(other.ProductId) &&
                   BacklogItemId.Equals(other.BacklogItemId));
        }