Produced by Araxis Merge on 5/23/2019 1:19:13 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | PATS_R_SourceCode.zip\PATSRIntegrationsCRMOL\UnitTests | IrisUnitTests.cs | Mon Apr 29 13:54:04 2019 UTC |
2 | PATS_R_SourceCode.zip\PATSRIntegrationsCRMOL\UnitTests | IrisUnitTests.cs | Thu May 23 01:30:07 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 192 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | using Syst em; | |
2 | using Micr osoft.Visu alStudio.T estTools.U nitTesting ; | |
3 | using VIMT .VeteranWe bService.M essages; | |
4 | using Iris .VEFT.Mess ages; | |
5 | using VRM. Integratio n.Serviceb us.Core; | |
6 | using VEIS .Utilities .Models; | |
7 | using VEIS .Utilities ; | |
8 | ||
9 | namespace IRISUnitTe sts | |
10 | { | |
11 | [TestC lass] | |
12 | public class IRI SIntegrati onTest | |
13 | { | |
14 | pr ivate stat ic string _orgName; | |
15 | ||
16 | pr ivate stat ic Guid _c rmeUserId = Guid.Par se("6FF0CA 08-2FD2-E4 11-B6F7-00 155D5575E0 "); | |
17 | ||
18 | private st atic strin g veisUrl = "https:/ / DNS . URL /"; | |
19 | ||
20 | pr ivate stat ic string clientId = "58d50ca3 -b921-4d9b -ac76-8965 be2eb80b"; | |
21 | ||
22 | pr ivate stat ic string clientSecr et = "4RdV Ddhq8cv/h2 263Ojdy8fD 3JI9OwHcr5 hOkntAwTc= "; | |
23 | ||
24 | pr ivate stat ic string tenantId = "f7c49e36 -971b-42c7 -b244-a88e ed6c0bf6"; | |
25 | ||
26 | pr ivate stat ic string veisOrgNam e = "CRMED EV"; | |
27 | ||
28 | pr ivate stat ic string resourceId = "4a7747 6c-ceed-45 db-ad7e-ac 2bbbc4f72a "; | |
29 | ||
30 | pr ivate stat ic string subscripti onKey = "8 8784cf9396 e41dab087c 90a5da0c2c 1"; | |
31 | ||
32 | pr ivate stat ic string medalliaPa th = "pats r.lob.meda llia/api"; | |
33 | ||
34 | pr ivate stat ic string irisPath = "patsr.lo b.iris/api "; | |
35 | ||
36 | pr ivate stat ic string whhPath = "patsr.lob .whh/api"; | |
37 | #r egion Init ialize | |
38 | [T estInitial ize] | |
39 | pu blic void IRISInitia lize() | |
40 | { | |
41 | } | |
42 | #e ndregion I nitialize | |
43 | ||
44 | [T estMethod] | |
45 | pu blic void TestIrisCr eate() | |
46 | { | |
47 | IrisCrea teInteract ionRequest irisCreat eInteracti onRequest = new Iris CreateInte ractionReq uest | |
48 | { | |
49 | inci dentNumber = "12345" , | |
50 | cont actDate = "11/11/201 7", | |
51 | firs tName = "B ob", | |
52 | inst itution = "699", | |
53 | issu eText = "I had a pro blem!", | |
54 | last Name = "Ho pe", | |
55 | Mess ageId = Gu id.NewGuid ().ToStrin g(), | |
56 | meth odOfContac t = "Phone ", | |
57 | meth odOfContac tData = "1 23-123-123 4", | |
58 | orga nizationNa me = "ftp" , | |
59 | rela tionToVet = "Father" , | |
60 | ssn = "1231231 23" | |
61 | }; | |
62 | VeisConf ig config = Retrieve VeisConfig (irisPath) ; | |
63 | IrisCrea teInteract ionRespons e irisCrea teInteract ionRespons e = WebApi Utility.Se ndReceiveV eisRequest <IrisCreat eInteracti onResponse >(config, "Interacti on", irisC reateInter actionRequ est); | |
64 | //var re s = req.Se ndReceive< CreateInte ractionRes ponse>(Mes sageProces sType.Loca l); | |
65 | var test = irisCre ateInterac tionRespon se.Message Id; | |
66 | } | |
67 | ||
68 | in ternal sta tic VeisCo nfig Retri eveVeisCon fig(string path) | |
69 | { | |
70 | VeisConf ig config = new Veis Config() | |
71 | { | |
72 | OrgO verride = veisOrgNam e, | |
73 | }; | |
74 | ||
75 | config.O rgName = v eisOrgName ; | |
76 | ||
77 | config.V eisConfigu ration = n ew VeisCon figuration () | |
78 | { | |
79 | CRMA uthInfo = new CRMAut hTokenConf iguration( ) | |
80 | { | |
81 | ClientAppl icationId = clientId , | |
82 | ClientSecr et = clien tSecret, | |
83 | TenantId = tenantId, | |
84 | ResourceId = resourc eId, | |
85 | ||
86 | }, | |
87 | SvcC onfigInfo = new VEIS SvcLOBConf iguration( ) | |
88 | { | |
89 | ApimSubscr iptionKey = subscrip tionKey, | |
90 | } | |
91 | }; | |
92 | ||
93 | config.V eisConfigu ration.Svc ConfigInfo .SvcLOBSer viceUrl = veisUrl + path; | |
94 | return c onfig; | |
95 | } | |
96 | } | |
97 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.