Arc.Unit.Tests.Fakes.Identity.GuidIdentityEntityTester.SetId C# (CSharp) Метод

SetId() публичный Метод

public SetId ( System.Guid identity ) : void
identity System.Guid
Результат void
        public void SetId(Guid identity)
        {
            Id = identity;
        }

Usage Example

Пример #1
0
        public void Guid_based_entity_subclass_may_change_identity()
        {
            var tester = new GuidIdentityEntityTester();

            Assert.That(tester.Id, Is.Not.EqualTo(GuidFactory.One), "It's identity should be other than one");

            tester.SetId(GuidFactory.One);

            Assert.That(tester.Id, Is.EqualTo(GuidFactory.One));
        }
GuidIdentityEntityTester