public LoanFieldEventMessageBuilder(ILoans loans, LoanFieldEventArgs loanFieldEventArgs) : base(loans) { LoanEvent.OldValue = loanFieldEventArgs.OldValue.ToString(); LoanEvent.NewValue = loanFieldEventArgs.NewValue.ToString(); LoanEvent.FieldName = loanFieldEventArgs.LoanField.DataDefinition.XmlName; LoanEvent.FieldNumber = loanFieldEventArgs.LoanField.DataDefinition.FieldNumber; Topic = string.Format("{0}.{1}", LoanEvent.GetType().Name, LoanEvent.FieldNumber); }
public LoanMajorEventMessageBuilder(ILoans loans, int majorEventNum) : base(loans) { LoanEvent.MajorEventNum = majorEventNum; Topic = string.Format("{0}.{1}", LoanEvent.GetType().Name, LoanEvent.MajorEventNum); }