I have a class Purchase (used by nh) that has an IPayment
Currently I am having two implementations of that interface:
public class BankPayment : IPayment
{
public int NumberInstallments
{
get { return 1; }
}
}
public class CreditCardPayment : IPayment
{
public CreditCardPayment(Creditcard card, int
numberInstallations,
Address billingAddress)
{
Card = card;
NumberInstallments = numberInstallations;
BillingAddress = billingAddress;
}
public Creditcard Card { get; private set; } // a component, as
well
public int NumberInstallments { get; private set; }
public Address BillingAddress { get; private set; } // another
component!
}
how can I map this as a component to Purchase? I truly have no idea...
--
Jan
___________________
[EMAIL PROTECTED]
www.limpens.com
+55 (11) 3082-1087
+55 (11) 3097-8339
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---