| 95 | === Add a helper function to use DAL to replicate the simple search query === |
| 96 | Construct a DAL query which will return the records that mirror a simple search. |
| 97 | This will need to be a generic solution so that the function needs to work for any given model. |
| 98 | |
| 99 | === Add a helper function to use DAL to replicate the advance search query === |
| 100 | Construct a DAL query which will return the records that mirror an advanced search. |
| 101 | |
| 102 | === Automatically check that the number of records returned from a search is correct === |
| 103 | Use the appropriate helper function, see above, to get the right search query. Use this query to automatically check that the number of records returned are correct. |
| 104 | |
| 105 | === Automatically check that the records returned from a search are correct === |
| 106 | Use the appropriate helper function, see above, to get the right search query. Use this query to check that all the record IDs are correct. NOTE this could be just restricted to the records on the first page if more than one page of records are returned. |
| 107 | |