Exemplo n.º 1
0
        public ResponseFile GetTestHtmlPage()
        {
            string page = new TestPage(
                    instanceId: _htmlPageInstanceId,
                    windowless: Settings.Default.Windowless
                ).ToString();

            Interlocked.Increment(ref _htmlPageInstanceId);

            return new ResponseFile { FileData = page.ToByteArray(), ContentType = "text/html" };
        }
 public void Should_server_the_GetHtmlTestPage_file()
 {
     var expectedFile = new TestPage(instanceId: 0, windowless: "false").ToString();
     GetString(StatLightServiceRestApi.GetHtmlTestPage)
         .ShouldEqual(expectedFile);
 }