TP icon indicating copy to clipboard operation
TP copied to clipboard

CP - layers must be tested independently

Open mpostol opened this issue 2 years ago • 1 comments

Describe the bug

The unit test for ViemModel creates MainWindowViewModel and Model so finely it is an integration test. We must use the abstract API of the Model layer to detach the ViewModel and Model for UT.

To Reproduce

NA

Expected behavior

MainWindowViewModel must refer to the Model layer implementation designed for testing purposes only. Reuse the design pattern applied for the layered application example in InformationComputation.

mpostol avatar Mar 28 '23 19:03 mpostol

An example of how to accomplish it may be found in the graphical data included in the ExDM project

mpostol avatar Nov 10 '23 19:11 mpostol