Esempio n. 1
0
        public void GetFaqById_returns_expected_faq()
        {
            // Given
            const int faqId = 112;


            // When
            var result = faqsDataService.GetFaqById(faqId);

            // Then
            result.Should().BeEquivalentTo(expectedFaq);
        }
Esempio n. 2
0
        public void GetFaqById_returns_expected_faq()
        {
            // Given
            const int faqId       = 112;
            var       expectedFaq = new Faq
            {
                FaqId       = 112,
                TargetGroup = 0,
                Published   = true,
                AHtml       =
                    "No, existing learners will access the Learning Portal using their existing <strong>Delegate ID</strong>.&nbsp;",
                QText       = "Do our existing learners need to register to use the Learning Portal? ",
                QAnchor     = "LearningPortalRegister",
                Weighting   = 20,
                CreatedDate = new DateTime(2017, 5, 9),
            };

            // When
            var result = faqsDataService.GetFaqById(faqId);

            // Then
            result.Should().BeEquivalentTo(expectedFaq);
        }