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); }
public ActionExecutableTest() { this.executableContext = new Mock<IExecutableContext>(); this.testee = new ActionExecutable<IExtension>(() => this.SetWasExecuted()); }