public void Execute_CorrrectId_ReturnHtmlContent() { var inModel = new Input { Id = "ok" }; var result = (ParserExecutorResultBase) new Site911Result(); var workUnitResult = (A0httpResponse)(workUnit.Execute(inModel, ref result)); Assert.AreEqual("html content", workUnitResult.Html); }
public void Execute_RealModelSample_GetContentNoException() { var httpClient = new HttpClient(); var workUnit = new A0httpRequest(httpClient); var inModel = new Input { Id = "MD619865" }; var result = (ParserExecutorResultBase) new Site911Result(); var firstResult = (A0httpResponse)(workUnit.Execute(inModel, ref result)); Assert.IsNull(result.Exception); Assert.IsTrue(firstResult.Html.Length > 0); }