Exemple #1
0
        public void SetProperty_UniqueIdentifier()
        {
            Tenant tenant = TestHelper.CreateTenant("TestTenant", string.Empty);
            IBusinessObjectWithIdentity businessObject = tenant;

            businessObject.SetProperty("UniqueIdentifier", "My Unique Identifier");
            Assert.That(tenant.UniqueIdentifier, Is.EqualTo("My Unique Identifier"));
            Assert.That(businessObject.UniqueIdentifier, Is.EqualTo(tenant.ID.ToString()));
        }
Exemple #2
0
        public void SetProperty_UniqueIdentifier()
        {
            Group group = CreateGroup();
            IBusinessObjectWithIdentity businessObject = group;

            businessObject.SetProperty("UniqueIdentifier", "My Unique Identifier");
            Assert.That(@group.UniqueIdentifier, Is.EqualTo("My Unique Identifier"));
            Assert.That(businessObject.UniqueIdentifier, Is.EqualTo(@group.ID.ToString()));
        }