public override void SetUp() { base.SetUp(); var id = RelationEndPointID.Create(DomainObjectIDs.Computer1, ReflectionMappingHelper.GetPropertyName(typeof(Computer), "Employee")); _endPoint = new TestableRelationEndPoint(TestableClientTransaction, id); }
public void RelationEndPointIsFlattenedSerializable() { RelationEndPoint deserializedEndPoint = FlattenedSerializer.SerializeAndDeserialize(_endPoint); Assert.That(deserializedEndPoint, Is.Not.Null); Assert.That(deserializedEndPoint, Is.Not.SameAs(_endPoint)); }
public override void SetUp() { base.SetUp(); _invalidObject = Order.NewObject(); _invalidObject.Delete(); Assert.That(_invalidObject.State, Is.EqualTo(StateType.Invalid)); _endPointID = RelationEndPointObjectMother.CreateRelationEndPointID(DomainObjectIDs.Order1, "OrderTicket"); _endPoint = new TestableRelationEndPoint(TestableClientTransaction, _endPointID); _endPointWithNullObject = new TestableRelationEndPoint(TestableClientTransaction, RelationEndPointID.Create(null, _endPointID.Definition)); _endPointWithInvalidObject = new TestableRelationEndPoint(TestableClientTransaction, RelationEndPointID.Create(_invalidObject.ID, _endPointID.Definition)); }