SPRNET-1468 call proper overload for evaluating bindings

This commit is contained in:
Steve Bohlen
2011-10-07 18:42:51 -04:00
parent 3f3dd9b836
commit 770223bfc9
2 changed files with 5 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ namespace Spring.DataBinding
{
foreach (IBinding binding in bindings)
{
binding.BindSourceToTarget(source, target, validationErrors);
binding.BindSourceToTarget(source, target, validationErrors, variables);
}
}
@@ -239,7 +239,7 @@ namespace Spring.DataBinding
{
foreach (IBinding binding in bindings)
{
binding.BindTargetToSource(source, target, validationErrors);
binding.BindTargetToSource(source, target, validationErrors, variables);
}
}

View File

@@ -50,21 +50,21 @@ namespace Spring.DataBinding
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void WithNullMesageId()
public void WithNullMessageId()
{
new SimpleExpressionBinding("exp", "exp").SetErrorMessage(null, "errors");
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void WithEmptyMesageId()
public void WithEmptyMessageId()
{
new SimpleExpressionBinding("exp", "exp").SetErrorMessage("", "errors");
}
[Test]
[ExpectedException(typeof(ArgumentNullException))]
public void WithWhitespaceMesageId()
public void WithWhitespaceMessageId()
{
new SimpleExpressionBinding("exp", "exp").SetErrorMessage("\t ", "errors");
}