public void HandleEventInstance(MockDeposit eventInstance) { if (eventInstance != null) { _currentBalance += eventInstance.AmountDeposited; if (!string.IsNullOrWhiteSpace(eventInstance.Commentary)) { _lastMessage = eventInstance.Commentary; } } }
public ClassificationResponse.ClassificationResults ClassifyEventInstance(MockDeposit eventInstance) { if (eventInstance != null) { _currentBalance += eventInstance.AmountDeposited; } if (_currentBalance >= _cuttoff) { return(ClassificationResponse.ClassificationResults.Include); } return(ClassificationResponse.ClassificationResults.Exclude); }