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

            _propertyFake            = MockRepository.GenerateMock <IBusinessObjectProperty> ();
            _businessObjectClassFake = MockRepository.GenerateMock <IBusinessObjectClass> ();
        }
Ejemplo n.º 2
0
 public ClassDerivedFromBindableObjectBase(IBindableObjectBaseImplementation implementation)
 {
     PrivateInvoke.SetNonPublicField(this, "_implementation", implementation);
 }
Ejemplo n.º 3
0
 protected BindableObjectBase()
 {
     Assertion.DebugAssert(!TypeExtensions.CanAscribeTo(typeof(BindableObjectMixin), typeof(Mixin <,>)),
                           "we assume the mixin does not have a base object");
     _implementation = BindableObjectBaseImplementation.Create(this);
 }