Base class for all call history objects. Only used internally.
コード例 #1
0
ファイル: Interceptor.cs プロジェクト: eteeselink/fakethat
 public void ExpectSetter(Delegate setterStub, CallHistoryBase callHistory)
 {
     this.expectedSetterOperation = new Operation
     {
         Delegate = setterStub,
         CallHistory = callHistory
     };
 }
コード例 #2
0
ファイル: Interceptor.cs プロジェクト: eteeselink/fakethat
 /// <summary>
 /// Register <paramref name="instead"/> to be executed when <paramref name="method"/> is called.
 /// Uses MethodInfo.ToString(), which uniquely identifies any possible signature.
 /// </summary>
 public void RegisterOperation(MethodInfo method, Delegate instead, CallHistoryBase stubbedOperation)
 {
     operations[method.ToString()] = new Operation()
     {
         Delegate = instead,
         CallHistory = stubbedOperation
     };
 }