public void WhenEntrypointIsInvokedThroughAnInterfaceImplementation() { // The mocked gardener implements an interface from the system // under test but the real entrypoint is the call it does on the // provided Gherkin. IGardener gardener = new MockedGardener(); gardener.WaterPlants(); }
public void WhenEntrypointIsInvokedAfterInvocationOnInterface() { // First let the mocked gardener plant something IGardener gardener = new MockedGardener(); gardener.Plant(); // Then let the real gardener water it new Gardener().WaterPlants(); }