示例#1
0
        public void GivenThePreviousVersionThenTheResponseIsNegative()
        {
            SignedVersion version = aggregate.Version;
            SignedVersion next    = version.Next();

            Assert.False(version.IsNext(next));
        }
示例#2
0
        public void GivenTheNextNextVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative()
        {
            SignedVersion version = aggregate.Version;
            SignedVersion next    = version.Next().Next();

            Assert.False(next.IsNext(version.Footer, version.Number));
        }
示例#3
0
        public void GivenTheNextVersionThenTheResponseIsPositive()
        {
            SignedVersion version = aggregate.Version;
            SignedVersion next    = version.Next();

            Assert.True(next.IsNext(version));
        }
示例#4
0
        public void GivenAVersionThenTheNextVersionIsReturned()
        {
            SignedVersion version = aggregate.Version;
            SignedVersion next    = version.Next();

            Assert.True(next.IsNext(version));
        }
示例#5
0
        public void GivenADifferentNextVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative()
        {
            SignedVersion version = aggregate.Version;
            var           other   = new SerializableAggregateRoot();
            SignedVersion next    = other.Version.Next();

            Assert.False(next.IsNext(version.Footer, version.Number));
        }
示例#6
0
        public void GivenAnEmptyVersionWhenFooterAndNumberAreUsedThenTheResponseIsNegative()
        {
            SignedVersion version = aggregate.Version;

            Assert.False(version.IsNext(SignedVersion.Empty.Footer, SignedVersion.Empty.Number));
        }
示例#7
0
        public void GivenAnEmptyVersionThenTheResponseIsNegative()
        {
            SignedVersion version = aggregate.Version;

            Assert.False(version.IsNext(SignedVersion.Empty));
        }