public ExtenderFactoryTests() { this.core = Mock.Of <IAsyncExtenderCore <string> >(MockBehavior.Strict); this.factory = new AsyncExtenderFactory <string, string>( new AsyncExtenderFactoryCore <string, string>(new ConcurrentDictionary <string, Func <IAsyncExtenderCore> >(new[] { new KeyValuePair <string, Func <IAsyncExtenderCore> >("TEST-KEY", () => this.core) })), () => null); }
public AsyncExtender(IAsyncExtenderCore <TState> extensions, IAsyncExtender <TState> proxy, ServiceFactory factory) { this.extensions = extensions; this.proxy = proxy; this.factory = factory; }