public static MockableDiscoveryService Setup(IProjectScope projectScope) { var discoveryResultProviderMock = new Mock <IDiscoveryResultProvider>(); var discoveryService = new MockableDiscoveryService(projectScope, discoveryResultProviderMock); projectScope.Properties.AddProperty(typeof(IDiscoveryService), discoveryService); return(discoveryService); }
public void GivenThereIsASpecFlowProjectScope() { _projectScope = new InMemoryStubProjectScope(_ideScope); _projectScope.AddSpecFlowPackage(); _discoveryService = MockableDiscoveryService.Setup(_projectScope); }