Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Alternative implementation of the Service
class AlternateService :IService
public void Serve()
Console.WriteLine("Service Called");
//To Do: Some Stuff
class TestClient
public void Main(string[] args) {
// Will compile. Cannot mock out the alternate service
Client client = new Client(new AlternateService());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.