blob: f58b2a359aef2b2e38c78c4f059123db7970b9fb [file] [log] [blame]
namespace Agility.Core
{
/// <summary>
/// A Command that modifies an input value by adding the
/// substring "_MODIFIED" and sets the new value as output,
/// without changing the input value.
/// </summary>
public class TestModifyCommand : ICommand
{
public const string SUFFIX = "_MODIFIED";
public bool Execute(IContext _context)
{
TestContext context = _context as TestContext;
string input = context[context.InputKey] as string;
string output = input + SUFFIX;
context[context.OutputKey] = output;
return false;
}
}
}