コード例 #1
0
 public void AddExecutionMock<T>(ServiceRequestExecution mock) where T : OrganizationRequest
 {
     if (!ExecutionMocks.ContainsKey(typeof(T)))
         ExecutionMocks.Add(typeof(T), mock);
     else
         ExecutionMocks[typeof(T)] = mock;
 }
コード例 #2
0
 public void RemoveExecutionMock <T>() where T : OrganizationRequest
 {
     ExecutionMocks.Remove(typeof(T));
 }