public void GivenTheNextNextVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next().Next(); Assert.False(next.IsNext(version.Footer, version.Number)); }
public void GivenThePreviousVersionThenTheResponseIsNegative() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.False(version.IsNext(next)); }
public void GivenTheNextVersionThenTheResponseIsPositive() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.True(next.IsNext(version)); }
public void GivenAVersionThenTheHeaderOfTheNextVersionNumberIsOneHigherThanThePreviousVersion() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.True(next.Number - version.Number == 1); }
public void GivenAVersionThenTheHeaderOfTheNextVersionIsTheFooterOfThePreviousVersion() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.Equal(version.Footer, next.Header); }
public void GivenAVersionThenTheNextVersionIsReturned() { SignedVersion version = aggregate.Version; SignedVersion next = version.Next(); Assert.True(next.IsNext(version)); }
private void Prepare( out SignedVersion first, out SignedVersion second, out SignedVersion third, out SignedVersion[] sequence) { var aggregate = new SerializableAggregateRoot(); first = aggregate.Version; second = first.Next(); third = second.Next(); sequence = new[] { first, third, second }; }