public XunitMetadataExplorer([NotNull] XunitElementFactory factory, IShellLocks shellLocks, IProject project, UnitTestElementConsumer consumer)
 {
     if (factory == null) throw new ArgumentNullException("factory");
     this.project = project;
     this.consumer = consumer;
     this.shellLocks = shellLocks;
     this.factory = factory;
     envoy = ProjectModelElementEnvoy.Create(project);
 }
        private static object DoFindUnitTestElementDisposition(ICollection<UnitTestElementDisposition> tests, ITreeNode file)
        {
            var factory = new XunitElementFactory(new XunitTestProvider(), new Mock<IUnitTestElementManager>().Object);

            var explorer = new XunitFileExplorer(factory,
                                                 file,
                                                 SearchDomainFactory.Instance,
                                                 tests.Add,
                                                 () => false);
            file.ProcessDescendants(explorer);

            return null;
        }
        public XunitFileExplorer([NotNull] XunitElementFactory factory, [NotNull] ITreeNode file, [NotNull] SearchDomainFactory searchDomainFactory, UnitTestElementLocationConsumer consumer, CheckForInterrupt interrupted)
        {
            if (factory == null) 
                throw new ArgumentNullException("factory");
            if (searchDomainFactory == null) 
                throw new ArgumentNullException("searchDomainFactory");
            if (file == null)
                throw new ArgumentNullException("file");

            this.factory = factory;
            this.searchDomainFactory = searchDomainFactory;
            this.consumer = consumer;
            this.interrupted = interrupted;

            projectFile = file.GetSourceFile().ToProjectFile();
            if (projectFile != null) project = projectFile.GetProject();
            envoy = ProjectModelElementEnvoy.Create(project);
        }
 public XunitTestElementSerializer(XunitTestProvider provider, XunitElementFactory factory, ISolution solution)
 {
     this.provider = provider;
     this.factory = factory;
     this.solution = solution;
 }
 public XUnitTestFileExplorer(XunitTestProvider provider, XunitElementFactory factory, SearchDomainFactory searchDomainFactory)
 {
     this.provider = provider;
     this.factory = factory;
     this.searchDomainFactory = searchDomainFactory;
 }
 public XUnitTestMetadataExplorer(XunitTestProvider provider, XunitElementFactory factory, IShellLocks shellLocks)
 {
     this.provider = provider;
     this.factory = factory;
     this.shellLocks = shellLocks;
 }