Skip to content

Instantly share code, notes, and snippets.

@stimms
Last active December 10, 2015 20:48
Show Gist options
  • Save stimms/4490594 to your computer and use it in GitHub Desktop.
Save stimms/4490594 to your computer and use it in GitHub Desktop.
Used to replace tokens in a string
public string ApplyTokenReplacers(string toHaveTokensReplaced, IEnumerable<string> tokens, IEnumerable<ITokenReplacer> replacers, int aggregateId)
{
foreach(var replacer in replacers)
foreach(var token in tokens)
toHaveTokensReplaced = replacer.Apply(toHaveTokensReplaced, token, aggregateId);
return toHaveTokensReplaced;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment