Before this PR, the API and controller are very hard to add test cases since we don't design any interface for this purpose. Many components are designed as an async mode by default which is not necessary.
So we have resolved those issues by using the sync mode and adding more interfaces to make it easier to mock and test.
Before this PR, the API and controller are very hard to add test cases since we don't design any interface for this purpose. Many components are designed as an async mode by default which is not necessary.
So we have resolved those issues by using the sync mode and adding more interfaces to make it easier to mock and test.