Exemplo n.º 1
0
        public void DisplayName_Overridden_ValueFromMixin()
        {
            BindableObjectWithIdentityMixin mixin =
                Mixin.Get <BindableObjectWithIdentityMixin> (ObjectFactory.Create <ClassWithIdentityAndDisplayName> (ParamList.Create("TheUniqueIdentifier")));
            IBusinessObjectWithIdentity businessObjectWithIdentity = mixin;

            Assert.That(businessObjectWithIdentity.DisplayName, Is.SameAs("TheUniqueIdentifier"));
        }
Exemplo n.º 2
0
        public void GetUniqueIdentifier()
        {
            BindableObjectWithIdentityMixin mixin =
                Mixin.Get <BindableObjectWithIdentityMixin> (ObjectFactory.Create <ClassWithIdentity>(ParamList.Create("TheUniqueIdentifier")));
            IBusinessObjectWithIdentity businessObjectWithIdentity = mixin;

            Assert.That(businessObjectWithIdentity.UniqueIdentifier, Is.SameAs("TheUniqueIdentifier"));
        }