require 'test_helper'
module Workarea
module Kount
class EventTest < Workarea::TestCase
def test_create
assert_instance_of(Kount::DmcEvent, Event.create(dmc_xml))
assert_instance_of(Kount::WorkflowEvent, Event.create(workflow_xml))
end
private
def dmc_xml
xml = <<~XML
DMC_ADDRESS_ADD
Street Address
Optional Address
City
State
Postal Code
Address Type
null
New Status
agent@email.com
2015-09-05 13:19:24
XML
Nokogiri::XML.parse(xml).children.first
end
def workflow_xml
xml = <<~XML
WORKFLOW_STATUS_EDIT
7JG1075ML345
R
A
SYSTEM@KOUNT.NET
2018-05-18 06:47:47.413756
XML
Nokogiri::XML.parse(xml).children.first
end
end
end
end