public override void SetUp() { base.SetUp(); _loadedClassWithAllDataTypes = DomainObjectIDs.ClassWithAllDataTypes1.GetObject <ClassWithAllDataTypes> (); _newClassWithAllDataTypes = ClassWithAllDataTypes.NewObject(); _loadedClassWithAllDataTypesMixin = Mixin.Get <MixinWithAccessToDomainObjectProperties <ClassWithAllDataTypes> > (_loadedClassWithAllDataTypes); _newClassWithAllDataTypesMixin = Mixin.Get <MixinWithAccessToDomainObjectProperties <ClassWithAllDataTypes> > (_newClassWithAllDataTypes); }
public void PropertiesThrowsBeforeOnDomainObjectReferenceInitializingWasCalled() { var mixin = new MixinWithAccessToDomainObjectProperties <ClassWithAllDataTypes>(); Assert.That( () => mixin.Properties, Throws.InvalidOperationException.With.Message.EqualTo( "This member cannot be used until the OnDomainObjectReferenceInitializing event has been executed.")); }