Creating a Form Adaptor project
Form adaptors are used in order to create test cases for user interface events--they provide a bridge between the form interactions and code. They can be created within the main project, but this creates a lot of needless classes that we will rarely wish to see.
Getting ready
Open the project that we need form adaptors for, which, in our case, is ConWHSVehicleManagement
.
How to do it...
To create the Form Adapter project, follow these steps:
- Select
Dynamics 365 for Operations
|Create model
from the top menu and complete the Create model form as follows:
Field | Value |
Model name | ConWHSVehicleManagementFormAdaptor |
Model publisher | Contoso IT |
Layer | VAR |
Model description | Form adapters for the ConWHSVehicleManagement package |
Model display name | ConWHSVehicleManagementFormAdaptor |
Note
The suffix is important and should always be FormAdaptor
.
- Click on
Next
. - Select
Create new package
and click onNext
. - Select
ConWHSVehicleManagement
andTestEssentials
from thePackages [Models]
list and click...