public void TestValidationWithOneMel() { Store store = new Store(new Type[] { typeof(MockDomainModel) }); Partition partition = new Partition(store); using (Transaction t = store.TransactionManager.BeginTransaction()) { ExtensibleMockModelElement mockModelElement = new ExtensibleMockModelElement(partition, "Foo"); ValidationController controller = new ValidationController(); bool Isvalid = ModelValidator.ValidateModelElement(mockModelElement, controller); Assert.AreEqual(true, Isvalid); t.Rollback(); } }
public void TestWithNullParameters() { ModelValidator.ValidateModelElement(null, null); }