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