public void Setup(MessageStoreType type, FakeMessageStoreWithViewer fakeMessageStoreWithViewer) { _messageStoreConfigCache.Set(type, msli => { if (!ctorCalled.ContainsKey(type)) { ctorCalled.Add(type, 0); } ctorCalled[type]++; return(fakeMessageStoreWithViewer); }); }
public void Setup(MessageStoreType type, FakeMessageStoreWithViewer fakeMessageStoreWithViewer) { _messageStoreConfigCache.Set(type, msli => { if (!ctorCalled.ContainsKey(type)) { ctorCalled.Add(type,0); } ctorCalled[type]++; return fakeMessageStoreWithViewer; }); }
public void Set(MessageStoreType storeType, Func <MessageStoreConfig, IAmAMessageStore <Message> > storeCtor) { _storeCtorLookup.Add(storeType, storeCtor); }
public void Set(MessageStoreType storeType, Func<MessageStoreConfig, IAmAMessageStore<Message>> storeCtor) { _storeCtorLookup.Add(storeType, storeCtor); }
public void Set(MessageStoreType storeType, Func<MessageStoreActivationState, IAmAMessageStore<Message>> storeCtor) { _storeCtorLookup.Add(storeType, storeCtor); }