[Enhancement] Add interfaces for all public APIs to make mocking easier #56
Answered
by
dhindrik
johnshardman
asked this question in
General
-
SummaryTo make it easier to unit test view (the V in MVVM) code, add interfaces for all public APIs. For example, have Button implement IButton. That way, those who want to be able to unit test their view code can avoid using concrete classes, and can mock IButton in unit tests. API ChangesAll public APIs to implement interfaces. Intended Use CaseFor use in unit testing of view code. |
Beta Was this translation helpful? Give feedback.
Answered by
dhindrik
May 20, 2020
Replies: 1 comment
-
It looks like it is a part of the Slim Renderer Architecture, #28 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PureWeen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like it is a part of the Slim Renderer Architecture, #28