Capgemini / xrm-datamigration

Export and import data for Microsoft Dataverse. Supports JSON and CSV.
MIT License
24 stars 11 forks source link

test: extract interfaces to support testing of consuming tools #82

Closed tdashworth closed 2 years ago

tdashworth commented 2 years ago

I am currently writing tests for our XrmToolbox plugin and I was looking to mock and verify calls to the engine.

Two options I identified were:

1) Extract an interface of all public properties/methods 2) Make the public methods virtual so they can be mocked

I've taken the first approach here.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication