コード例 #1
0
ファイル: QuickReviewTest.cs プロジェクト: ivanreith/AreULub
        public void TestReviewHigh()
        {
            //Arrange
            var quickReview = new QuickReview()
            {
                UserQuesting = "Tester",
                Quest1       = "3",
                Quest2       = "3",
                Quest3       = "3"
            };

            //Act
            string resultReview = quickReview.CheckQuiz(quickReview);

            //Assert
            Assert.Equal("We are glad that you enjoyed our service, please come back!", quickReview.Quest2AnswerRight);
        }
コード例 #2
0
ファイル: QuickReviewTest.cs プロジェクト: ivanreith/AreULub
        public void TestReviewLow()
        {
            //Arrange
            var quickReview = new QuickReview()
            {
                UserQuesting = "Tester",
                Quest1       = "1",
                Quest2       = "1",
                Quest3       = "1"
            };

            //Act
            string resultReview = quickReview.CheckQuiz(quickReview);

            //Assert
            Assert.Equal("Sorry we didn't match your expectations!", quickReview.Quest2AnswerRight);
        }
コード例 #3
0
 public IActionResult FeedBackIndex(QuickReview model)
 {
     return(View(model));
 }