SPRNET-1468 call proper overload for evaluating bindings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user