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

public SetId ( System.Guid identity ) : void
identity System.Guid
Результат void
Пример #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));
        }