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);
        }
Example #2
0
 public void GivenThereIsASpecFlowProjectScope()
 {
     _projectScope = new InMemoryStubProjectScope(_ideScope);
     _projectScope.AddSpecFlowPackage();
     _discoveryService = MockableDiscoveryService.Setup(_projectScope);
 }