Arc.Unit.Tests.Fakes.Identity.GuidIdentityEntityTester.SetVersion C# (CSharp) Méthode

SetVersion() public méthode

public SetVersion ( int version ) : void
version int
Résultat void
        public void SetVersion(int version)
        {
            Version = version;
        }

Usage Example

        public void Guid_based_entity_subclass_may_change_version()
        {
            var tester = new GuidIdentityEntityTester();

            Assert.That(tester.Version, Is.Not.EqualTo(1), "It's version should be other than one");

            tester.SetVersion(1);

            Assert.That(tester.Version, Is.EqualTo(1));
        }
GuidIdentityEntityTester