ITestApiSimulatePluginInvocation Method |
Namespace: Casewhere.Runtime.DSL.Api
PluginTestScenario SimulatePluginInvocation( string pluginName, string methodName )
var pluginResult = new PluginResult { Data = new Dictionary<string, object>() }; pluginResult.Data.Add("subject", "Test plugin on Dev env"); pluginResult.Data.Add("body", "Test plugin on Dev env"); var testApi = ctx.Use<ITestApi>(); testApi.SimulatePluginInvocation("CwMail", "SendEmail").Parameters(parms => parms["subject"].ToString() == "Test plugin on Dev env").Returns(pluginResult);