Beispiel #1
0
        public void SetUp()
        {
            _implementationMock = MockRepository.GenerateMock <IBindableObjectBaseImplementation> ();
            _instance           = new ClassDerivedFromBindableObjectBase(_implementationMock);

            _propertyFake            = MockRepository.GenerateMock <IBusinessObjectProperty> ();
            _businessObjectClassFake = MockRepository.GenerateMock <IBusinessObjectClass> ();
        }
        public static BindableObjectBaseImplementation Create(BindableObjectBase wrapper)
        {
            ArgumentUtility.CheckNotNull("wrapper", wrapper);
            Assertion.DebugAssert(!TypeExtensions.CanAscribeTo(typeof(BindableObjectBaseImplementation), typeof(Mixin <,>)),
                                  "we assume the mixin does not have a base object");
            var impl = new BindableObjectBaseImplementation(wrapper);

            ((IInitializableMixin)impl).Initialize(wrapper, null, false);
            return(impl);
        }
 protected BindableObjectBaseImplementation(BindableObjectBase wrapper)
 {
     ArgumentUtility.CheckNotNull("wrapper", wrapper);
     _wrapper = wrapper;
 }