public void testOrgDTOModel() { OrganizationDTO objOrgDTO = new OrganizationDTO(); OrganizationModel objOrganizationModel = new OrganizationModel(); int numberOfPublicPropertiesofOrgDTO = objOrgDTO.GetType().GetProperties().Count(); int numberOfPublicPropertiesofOrgmodel = objOrganizationModel.GetType().GetProperties().Count(); Assert.AreEqual(numberOfPublicPropertiesofOrgDTO, OrganizationDTOPropertyCount, "OrganizationDTO properties has been changed"); Assert.AreEqual(numberOfPublicPropertiesofOrgmodel, OrganizationModelPropertyCount, "OrganizationModel properties has been changed"); }