public void Test_processEQIMessage_InvInput() { ServiceRunTimeManager srtMngr = new ServiceRunTimeManager(); ServiceListenerMembers listMem = new ServiceListenerMembers(); listMem.siteid = "siteid1"; listMem.listenerAddress = "10.203.232.19"; listMem.CustomerIdFlag = "true"; listMem.listenerPort = "12000"; String testData = "I000CUI,TI:000000000000000000,AN:010203040,SI:013,HE:C3,ND:B4567,BD:05,TL:Mrs ,LN:Customer ,FN:Test ,MI:E,A1:222 Avenue St. ,A2:Apt#123 ,CT:Greensburg ,ST:PA,ZP:12345 ,HP:213 123 1234,WP:215 123 1234,AS:A,E1:ENG000102030405.00039V000CUI,0000000,TI:000000000000000000.select LastName from Subscriber where SmsTag='013010203040'CUSTOMERselect FirstName from Subscriber where SmsTag='013010203040'TEST"; String expData = "0000119"; String resp = srtMngr.processEQIMessage(testData, listMem); Assert.AreEqual(expData, resp, "EQI Message is not processed correctly. Response [" + resp + "]"); }
public void Test_processEQIMessage() { ServiceRunTimeManager srtMngr = new ServiceRunTimeManager(); ServiceListenerMembers listMem = new ServiceListenerMembers(); listMem.siteid = "siteid1"; listMem.listenerAddress = "10.203.232.19"; listMem.CustomerIdFlag = "true"; listMem.listenerPort = "12000"; String testData = "I000EQI,TI:000000000000000000,AN:010203040,SI:013,ES:A,EA:00002986685930000000000000000000,S#:ABC45678901234567890123456789012,PA:ABCDEFGH,SV:0001234/0001236/0001237,AC:A,0000257,TI:000000000000000000.select * from Settop where MacAddr='000011cd5231'<empty>"; String expData_Success = "0000000"; String expData_Fail = "0000901"; String resp = srtMngr.processEQIMessage(testData, listMem); if (resp.Equals(expData_Success) || resp.Equals(expData_Fail)) { Assert.Pass("EQI Message is processed correctly"); } else { Assert.Fail("EQI Message is not processed correctly. Response [" + resp + "]"); } }