Use RandomDataGenerator.Net 1.0.3.0 (#231)

* Include="RandomDataGenerator.Net" Version="1.0.3"

* UndefinedBindingResult
This commit is contained in:
Stef Heyenrath
2018-11-13 09:49:46 +00:00
committed by GitHub
parent ac2ecd112f
commit 18af7a41d4
9 changed files with 220 additions and 50 deletions

View File

@@ -11,9 +11,9 @@ namespace WireMock.Transformers
{
internal static class HandleBarsLinq
{
public static void Register()
public static void Register(IHandlebars handlebarsContext)
{
Handlebars.RegisterHelper("Linq", (writer, context, arguments) =>
handlebarsContext.RegisterHelper("Linq", (writer, context, arguments) =>
{
(JToken valueToProcess, string linqStatement) = ParseArguments(arguments);
@@ -28,7 +28,7 @@ namespace WireMock.Transformers
}
});
Handlebars.RegisterHelper("Linq", (writer, options, context, arguments) =>
handlebarsContext.RegisterHelper("Linq", (writer, options, context, arguments) =>
{
(JToken valueToProcess, string linqStatement) = ParseArguments(arguments);