예제 #1
0
        public async Task Assert_get_survey_by_id()
        {
            IHttpActionResult actionResult = await surveyController.PutSurvey(survey);

            var contentResult = actionResult as OkNegotiatedContentResult <Survey>;

            Assert.IsNotNull(contentResult);

            IHttpActionResult result = await surveyController.GetSurveyById(survey.SurveyId);

            Assert.IsInstanceOf(typeof(OkNegotiatedContentResult <Survey>), result);
        }