Ejemplo n.º 1
0
 internal override InflateResult Inflate(PluginManager pluginManager)
 {
     if (!string.IsNullOrEmpty(Type))
     {
         _Descriptor = pluginManager.GetActionDescriptor(Type);
         if (_Descriptor != null)
         {
             _Impl = pluginManager.GetActionInstance(_Descriptor);
             if (_Impl != null)
             {
                 _Impl.Deserialize(Any);
             }
             else
             {
                 return(InflateResult.WithError(string.Format("Failed to find ActionExecutable instance for type \"{0}\"", _Descriptor.Type.FullName)));
             }
         }
     }
     return(InflateResult.Default);
 }
Ejemplo n.º 2
0
        public ActionExecutableTest()
        {
            this.executableContext = new Mock<IExecutableContext>();

            this.testee = new ActionExecutable<IExtension>(() => this.SetWasExecuted());
        }