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