Ploeh.Samples.Loan.PropertyHeadlineMortgageApplicationProcessor.ProduceOffer C# (CSharp) Method

ProduceOffer() public method

public ProduceOffer ( MortgageApplication dummyApplication ) : IEnumerable
dummyApplication Ploeh.Samples.Loan.DataCollection.MortgageApplication
return IEnumerable
        public IEnumerable<IRendering> ProduceOffer(MortgageApplication dummyApplication)
        {
            yield return new Heading2Rendering("Property");
        }

Usage Example

        public void ProduceOfferReturnsCorrectResult()
        {
            var sut = new PropertyHeadlineMortgageApplicationProcessor();

            var dummyApplication = new MortgageApplication();
            var actual = sut.ProduceOffer(dummyApplication);

            var expected = new[]
            {
                new Heading2Rendering("Property")
            };
            Assert.Equal(expected, actual);
        }
PropertyHeadlineMortgageApplicationProcessor