hasRequiredAttributes() public method

public hasRequiredAttributes ( ) : bool
return bool
Beispiel #1
0
 public void test_Validation_ModelCreator()
 {
     ModelCreator mc = new ModelCreator();
       assertTrue( mc != null );
       assertEquals( false, (mc.hasRequiredAttributes()) );
       mc.setEmail("k123");
       assertEquals( false, (mc.hasRequiredAttributes()) );
       mc.setFamilyName("Keating");
       assertEquals( false, (mc.hasRequiredAttributes()) );
       mc.setGivenName("Sarah");
       assertEquals( true, mc.hasRequiredAttributes() );
       mc = null;
 }