예제 #1
0
 public void AddGenericFakeMessageExecutor(string message, IFakeMessageExecutor executor)
 {
     if (!GenericFakeMessageExecutors.ContainsKey(message))
         GenericFakeMessageExecutors.Add(message, executor);
     else
         GenericFakeMessageExecutors[message] = executor;
 }
예제 #2
0
 public void AddFakeMessageExecutor<T>(IFakeMessageExecutor executor) where T : OrganizationRequest
 {
     if (!FakeMessageExecutors.ContainsKey(typeof(T)))
         FakeMessageExecutors.Add(typeof(T), executor);
     else
         FakeMessageExecutors[typeof(T)] = executor;
 }