Mocking AutomaticUpdaterBackend

Hi,

We are using AutomaticUpdaterBackend class in our product to update windows service and we are subscribing to the various callbacks like ReadyToBeInstalled etc. When trying to write UT for our code, we are unable to mock AutomaticUpdaterBackend since it has no interface nor is a virtual class.

Can you please let us know what can be done in this regard?

The AutomaticUpdater is complex and depends on states outside of your app. You can create your own mockups for the unit tests.