Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public AsyncExtender(IAsyncExtenderCore <TState> extensions, IAsyncExtender <TState> proxy, ServiceFactory factory)
 {
     this.extensions = extensions;
     this.proxy      = proxy;
     this.factory    = factory;
 }