Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public void IfPopulated_AnswersHasDataIsFalse_ReturnsNull()
        {
            var mockLearnMore = Mock.Of <ISolutionDocument>();
            var section       = new LearnMoreSection(mockLearnMore);

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