public void VisaPaymentAcceptsSimplePaymentDetails() { var sut = new VisaPayment(); var informationModifier = new SimplePaymentDetails(); sut.AcceptModificationsBy(informationModifier); Assert.That( informationModifier.GetModifiedData, Is.EqualTo("VisaDescription"), "description"); }
public void VisaPaymentAcceptsHtmlPaymentDetails() { var sut = new VisaPayment(); var informationModifier = new HtmlPaymentDetails(); sut.AcceptModificationsBy(informationModifier); Assert.That( informationModifier.GetModifiedData, Is.EqualTo("<html><body><div>VisaDescription</div></body></hmtl>"), "description"); }