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