public void Setup()
        {
            var features = Kernel.Get<DirectoryTreeCrawler>().Crawl(ROOT_PATH);

            var outputDirectory = new DirectoryInfo(OUTPUT_DIRECTORY);
            if (!outputDirectory.Exists) outputDirectory.Create();

            var configuration = new Configuration
                                    {
                                        OutputFolder = new DirectoryInfo(OUTPUT_DIRECTORY), 
                                        DocumentationFormat = DocumentationFormat.JSON
                                    };

            var jsonDocumentationBuilder = new JSONDocumentationBuilder(configuration);
            jsonDocumentationBuilder.Build(features);
        }
        public void Setup()
        {
            if (File.Exists(testResultFilePath) == false)
            {
                throw new FileNotFoundException("File " + testResultFilePath + " was not found");
            }

            GeneralTree<IDirectoryTreeNode> features = Kernel.Get<DirectoryTreeCrawler>().Crawl(ROOT_PATH);

            var outputDirectory = new DirectoryInfo(OUTPUT_DIRECTORY);
            if (!outputDirectory.Exists) outputDirectory.Create();

            var configuration = new Configuration
                                    {
                                        OutputFolder = new DirectoryInfo(OUTPUT_DIRECTORY),
                                        DocumentationFormat = DocumentationFormat.JSON,
                                        TestResultsFile = new FileInfo(testResultFilePath),
                                        TestResultsFormat = TestResultsFormat.MsTest
                                    };

            ITestResults testResults = new MsTestResults(configuration);
            var jsonDocumentationBuilder = new JSONDocumentationBuilder(configuration, testResults);
            jsonDocumentationBuilder.Build(features);
        }