March 2020
Intermediate to advanced
534 pages
14h 15m
English
The entity class allows us to interact more easily with data and allows us to use fluent coding. To demonstrate this, we can write a test class that uses this new entity class instead:
class ConVMSVehicleGroupAtlTest extends SysTestCase{ const ConVMSVehicleGroupId groupId = '%VG01%'; const str notFound = '%ERROR%'; [SysTestMethod] public void VehicleGroupExistAtlTest() { var vehGroup = AtlEntityConVMSVehicleGroup::construct() .setVehicleGroupId(groupId) .setName(groupId) .save(); this.assertTrue(ConVMSVehicleGroup::Exist(groupId), 'Vehicle group not found when it should'); this.assertFalse(ConVMSVehicleGroup::Exist(notFound), ...Read now
Unlock full access