public void JsonToHtml_EmptyContent()
        {
            jsonContent.Content = "";
            DocumentGeneratorController controller = new DocumentGeneratorController(documentGenerator, generatedDocumentLogger);

            Assert.ThrowsException <NsiArgumentNullException>(() => controller.GenerateHtmlFromJson(jsonContent));
        }
        public void JsonToHtml_Success()
        {
            var httpResponse = controller.GenerateHtmlFromJson(this.jsonContent);

            Assert.IsNotNull(httpResponse);
            HttpResponseMessage dummy = new HttpResponseMessage();

            Assert.AreEqual(httpResponse.GetType(), dummy.GetType());
            MediaTypeHeaderValue mediaType = new MediaTypeHeaderValue("text/html");

            Assert.AreEqual(httpResponse.Content.Headers.ContentType, mediaType);
            Assert.IsTrue(httpResponse.IsSuccessStatusCode);
            Assert.AreEqual(httpResponse.StatusCode, HttpStatusCode.OK);
            Assert.IsTrue(httpResponse.Content.Headers.ContentDisposition.Equals(new ContentDispositionHeaderValue("attachment")
            {
                FileName = jsonContent.Filename + ".html"
            }));
        }