Example #1
0
        public void IfPopulated_AnswersHasDataIsTrue_ReturnsSelf()
        {
            var mockLearnMore = Mock.Of <ISolutionDocument>(l => l.Name == "Document");
            var section       = new LearnMoreSection(mockLearnMore);

            section.IfPopulated().Should().Be(section);
        }
Example #2
0
        public void IfPopulated_AnswersHasDataIsFalse_ReturnsNull()
        {
            var mockLearnMore = Mock.Of <ISolutionDocument>();
            var section       = new LearnMoreSection(mockLearnMore);

            section.IfPopulated().Should().BeNull();
        }