-
Story
-
Resolution: Done
-
Major
-
None
-
None
Description
Without mocking out the structs that are used to interact with the Windows service libraries, large portions of WICD will not be unit testable. To mock these libraries out, interfaces must be created which encapsulates the actual implementation structs. A test implementation must also be created which fulfills the interface. In order for these interfaces to be used, they should live within `pkg/winsvc`.
Specifically what needs to be mocked out is Mgr and Service.
Acceptance Criteria
- The Mgr and Service interfaces are created within `pkg/winsvc`
- These interfaces are ready to be used within the implementation of the WICD bootstrap, cleanup, and controller commands.
- These interfaces have implementations that can be used to unit test WICD.