I'm doing some testing with 2.1 and started coming across some problem when I try to add validation to a class. The ValidationRulesManager is not nothing, but the children can not be evaluated. So when you try to get the list of rules for the property, a null reference exception is thrown. Has anyone seen this before?
Jeff
at Csla.Validation.ValidationRules.CheckRules(String propertyName) in C:\InternetDownloads\CSLA2\csla20vb-2.1-060731\csla20vb\csla20vb\Csla\Validation\ValidationRules.vb:line 556
at Csla.Core.BusinessBase.PropertyHasChanged(String propertyName) in C:\InternetDownloads\CSLA2\csla20vb-2.1-060731\csla20vb\csla20vb\Csla\Core\BusinessBase.vb:line 254
at EPAS.BusinessObjects.Form.set_DefaultForm(Boolean value) in C:\Projects\EPASV3\EPAS.BusinessObjects\Form\Form.vb:line 168
at EPAS.BusinessObjects.UnitTests.FormFixture.InsertForm() in C:\Projects\EPASV3\EPAS.BusinessObjects.UnitTests\FormTestFixtures\FormFixture.vb:line 48
at EPAS.BusinessObjects.UnitTests.FormFixture.Setup() in C:\Projects\EPASV3\EPAS.BusinessObjects.UnitTests\FormTestFixtures\FormFixture.vb:line 34
Protected
Overrides Sub AddBusinessRules() ValidationRules.AddRule(AddressOf CommonRules.StringRequired, "Name") End SubMy bad on the post that I have since deleted. It is being called.
Any way I could get an current build? A coworker and I are writing the validation code and unit tests this week for a project that's due at the end of Sept. We need the severity features to make it work, so rather then roll our own...
Jeff
Any way I could get an current build? A coworker and I are writing the validation code and unit tests this week for a project that's due at the end of Sept. We need the severity features to make it work, so rather then roll our own...
Copyright (c) Marimer LLC