private void CheckCurrentOppositeEndPoint(RealObjectEndPoint expected) { var loadState = (CompleteVirtualObjectEndPointLoadState)VirtualObjectEndPointTestHelper.GetLoadState(_virtualObjectEndPoint); var dataManager = (VirtualObjectEndPointDataManager)loadState.DataManager; Assert.That(dataManager.CurrentOppositeEndPoint, Is.SameAs(expected)); }
public void Internals() { var deserializedEndPoint = FlattenedSerializer.SerializeAndDeserialize(_endPoint); Assert.That(deserializedEndPoint.LazyLoader, Is.Not.Null); Assert.That(deserializedEndPoint.EndPointProvider, Is.Not.Null); Assert.That(deserializedEndPoint.TransactionEventSink, Is.Not.Null); Assert.That(deserializedEndPoint.DataManagerFactory, Is.Not.Null); var loadState = VirtualObjectEndPointTestHelper.GetLoadState(deserializedEndPoint); Assert.That(loadState, Is.Not.Null); }