Last active
December 10, 2015 20:48
-
-
Save stimms/4490594 to your computer and use it in GitHub Desktop.
Used to replace tokens in a string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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