AutomatedSurvey.Web.Test.Domain.ResponseTest.Build_a_response_using_Gather_if_the_question_type_is_Numeric_or_YesNo C# (CSharp) Method

Build_a_response_using_Gather_if_the_question_type_is_Numeric_or_YesNo() private method

private Build_a_response_using_Gather_if_the_question_type_is_Numeric_or_YesNo ( int id, string body, QuestionType type ) : void
id int
body string
type QuestionType
return void
        public void Build_a_response_using_Gather_if_the_question_type_is_Numeric_or_YesNo(
            int id, string body, QuestionType type)
        {
            var question = new Question { Id = id, Body = body, Type = type };
            var response = new Response(question).Build();
            var expectedResponse = string.Format(
                "<Response>\r\n" +
                "  <Say>{0}</Say>\r\n" +
                "  <Say>{1}</Say>\r\n" +
                "  <Gather action=\"/answers/create?questionId={2}\" />\r\n" +
                "</Response>", question.Body, Response.QuestionTypeToMessage[question.Type], question.Id);

            Assert.That(response.ToString(), Is.EqualTo(expectedResponse));
        }