TP
TP copied to clipboard
CP - layers must be tested independently
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.
An example of how to accomplish it may be found in the graphical data included in the ExDM project