public void ProduceOfferReturnsCorrectResult(
string street,
string postalCode,
string country,
int price,
int size)
{
var sut = new PropertyMortgageApplicationProcessor();
var application = new MortgageApplication
{
Property = new Property
{
Address = new Address
{
Street = street,
PostalCode = postalCode,
Country = country
},
Price = price,
Size = size
}
};
var actual = sut.ProduceOffer(application);
var expected =
new PropertyProcessor
{
PriceText = "Asking price"
}
.ProduceRenderings(application.Property);
Assert.Equal(expected, actual);
}