public void BuildOnlyHttpHeader()
        {
            ResponseContext context = new ResponseContext();
            string          ret     = context.BuildResponse();

            Assert.That(ret == "HTTP/1.1 200\r\nServer: Server_404 Not Found\r\n");
        }
        public void BuildHttpHeaderWithPayload()
        {
            ResponseContext context = new ResponseContext();

            context.ResponseMessage.Add(new ResponseMessage()
            {
                Status = StatusCodes.OK, Id = 1, ErrorMessage = "Kein Error"
            });
            string ret = context.BuildResponse();

            Assert.That(ret.Contains("Kein Error"));
        }