コード例 #1
0
 public ExtenderFactoryTests()
 {
     this.core    = Mock.Of <IExtenderCore <string> >(MockBehavior.Strict);
     this.factory = new ExtenderFactory <string, string>(
         new ExtenderFactoryCore <string, string>(new ConcurrentDictionary <string, Func <IExtenderCore> >(new[]
     {
         new KeyValuePair <string, Func <IExtenderCore> >("TEST-KEY", () => this.core)
     })),
         () => null);
 }
コード例 #2
0
ファイル: Extender.cs プロジェクト: emprax/Xtender
 public Extender(IExtenderCore <TState> extensions, IExtender <TState> proxy, ServiceFactory factory)
 {
     this.extensions = extensions;
     this.proxy      = proxy;
     this.factory    = factory;
 }