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.
Describe the bug
The unit test for
ViemModel
createsMainWindowViewModel
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.