Ejemplo n.º 1
0
        public void Setup()
        {
            var path = TestContext.CurrentContext.TestDirectory + "\\TestFiles\\easyScene1.html";

            _htmlMarkup = File.ReadAllText(path);
            _service    = new SceneParserService();
        }
Ejemplo n.º 2
0
    private SceneParserResponse ParseHtmlFile(string filePath)
    {
        string htmlContent = System.IO.File.ReadAllText(filePath);
        var    request     = new SceneParserRequest()
        {
            HtmlContent = htmlContent
        };
        var sceneParserService = new SceneParserService();
        var response           = sceneParserService.ParseScene(request);

        return(response);
    }