Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Validation/Actions
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9288/test/Spring/Spring.Core.Tests/Validation/Actions
Modified Files:
ErrorMessageActionTests.cs
Log Message:
Extracted IValidationErrors interface and made ValidationErrors non-sealed.
Added ValidationException class.
Modified email, credit card, isbn and url validators to return true (valid) if object to validate is null or empty.
Index: ErrorMessageActionTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Validation/Actions/ErrorMessageActionTests.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ErrorMessageActionTests.cs 9 Apr 2006 07:24:52 -0000 1.3
--- ErrorMessageActionTests.cs 5 Feb 2008 20:40:26 -0000 1.4
***************
*** 75,79 ****
{
Inventor context = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
! ValidationErrors errors = new ValidationErrors();
ErrorMessageAction action = new ErrorMessageAction("error", "errors");
--- 75,79 ----
{
Inventor context = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
! IValidationErrors errors = new ValidationErrors();
ErrorMessageAction action = new ErrorMessageAction("error", "errors");
***************
*** 86,90 ****
{
Inventor context = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
! ValidationErrors errors = new ValidationErrors();
ErrorMessageAction action = new ErrorMessageAction("{0}, {1}", "errors");
--- 86,90 ----
{
Inventor context = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
! IValidationErrors errors = new ValidationErrors();
ErrorMessageAction action = new ErrorMessageAction("{0}, {1}", "errors");
***************
*** 101,105 ****
{
Inventor context = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
! ValidationErrors errors = new ValidationErrors();
ErrorMessageAction action = new ErrorMessageAction("{0}, {1}", "errors");
--- 101,105 ----
{
Inventor context = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian");
! IValidationErrors errors = new ValidationErrors();
ErrorMessageAction action = new ErrorMessageAction("{0}, {1}", "errors");
|