public MockedScope CreateScope() { lock (locker) { scope = new MockedScope(this, locker); return scope; } }
private void SetScope(MockedScope mockedScope) { lock (locker) { scope = mockedScope; } }
public void ClearScope() { lock (locker) { scope.SetDisposed(); scope = null; } }