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