public void GivenThePreviousVersionThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.False(version.IsNext(next)); }
public void GivenTheNextNextVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next().Next(); Assert.False(next.IsNext(version.Footer, version.Number)); }
public void GivenTheNextVersionThenTheResponseIsPositive() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.True(next.IsNext(version)); }
public void GivenAVersionThenTheNextVersionIsReturned() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.True(next.IsNext(version)); }
public void GivenADifferentNextVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; var other = new SerializableAggregateRoot(); SignedVersion next = other.Version.Next(); Assert.False(next.IsNext(version.Footer, version.Number)); }
public void GivenAnEmptyVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; Assert.False(version.IsNext(SignedVersion.Empty.Footer, SignedVersion.Empty.Number)); }
public void GivenAnEmptyVersionThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; Assert.False(version.IsNext(SignedVersion.Empty)); }