public void MarkUnsynchronized() { Assert.That(RealObjectEndPointTestHelper.GetSyncState(_endPoint), Is.SameAs(_syncStateMock)); _endPoint.MarkUnsynchronized(); Assert.That(RealObjectEndPointTestHelper.GetSyncState(_endPoint), Is.TypeOf(typeof(UnsynchronizedRealObjectEndPointSyncState))); }
public void Initialization_SyncState() { var endPoint = new RealObjectEndPoint(TestableClientTransaction, _endPointID, _foreignKeyDataContainer, _endPointProviderStub, _transactionEventSinkStub); var syncState = RealObjectEndPointTestHelper.GetSyncState(endPoint); Assert.That(syncState, Is.TypeOf(typeof(UnknownRealObjectEndPointSyncState))); Assert.That(((UnknownRealObjectEndPointSyncState)syncState).VirtualEndPointProvider, Is.SameAs(_endPointProviderStub)); }
public void MarkSynchronized() { Assert.That(RealObjectEndPointTestHelper.GetSyncState(_endPoint), Is.SameAs(_syncStateMock)); _endPoint.MarkSynchronized(); Assert.That(RealObjectEndPointTestHelper.GetSyncState(_endPoint), Is.TypeOf(typeof(SynchronizedRealObjectEndPointSyncState))); Assert.That(_endPoint.EndPointProvider, Is.SameAs(_endPointProviderStub)); Assert.That(_endPoint.TransactionEventSink, Is.SameAs(_transactionEventSinkStub)); }
public void ResetSyncState() { Assert.That(RealObjectEndPointTestHelper.GetSyncState(_endPoint), Is.SameAs(_syncStateMock)); _endPoint.ResetSyncState(); var syncState = RealObjectEndPointTestHelper.GetSyncState(_endPoint); Assert.That(syncState, Is.TypeOf(typeof(UnknownRealObjectEndPointSyncState))); Assert.That(((UnknownRealObjectEndPointSyncState)syncState).VirtualEndPointProvider, Is.SameAs(_endPointProviderStub)); }