Unit testing in Service Fabric can be difficult. For example, how can you test remoting communication between services? And how do you even create an instance of your service type, without relying on a Service Fabric cluster being present on the machine? Fortunately, there’s help available.
In this article you’ll find a description of some of the solutions provided by the open source library named ‘ServiceFabric.Mocks’.
Please note that all examples below are also available as unit tests on Github.