9. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 11/5/2018 10:30:01 AM Central Standard 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.

9.1 Files compared

# Location File Last Modified
1 CRM_PE_OCT.zip\Integrations\UnitTests WHHUnitTests.cs Thu Sep 27 22:14:32 2018 UTC
2 CRM_PE_OCT.zip\Integrations\UnitTests WHHUnitTests.cs Mon Nov 5 02:47:34 2018 UTC

9.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 300
Changed 2 12
Inserted 0 0
Removed 0 0

9.3 Comparison options

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

9.4 Active regular expressions

No regular expressions were active.

9.5 Comparison detail

  1   using Syst em;
  2   using Micr osoft.Visu alStudio.T estTools.U nitTesting ;
  3   using WHH. VEFT.Messa ges;
  4   using VRM. Integratio n.Serviceb us.Core;
  5   using VRMR est.WebApi ;
  6   using VRM. Integratio n.Serviceb us.Extensi ons;
  7  
  8   namespace  PATSRUnitT ests
  9   {
  10       [TestC lass]
  11       public  class Uni tTest2
  12       {
  13             //private  static str ing onPrem iseVIMTDAC String = " https:// URL /VEFT/VINE XT";
  14             private st atic strin g onPremis eVIMTDACSt ring = "ht tps:// URL /INT/VEFT/ VINEXT";
  15           pr ivate stat ic WebServ iceDetails  _OnPremDA Cwsd = nul l;
  16           pr ivate stat ic Uri _on PremDACUri  = null;
  17  
  18           #r egion Init ialize
  19           [T estInitial ize]
  20           pu blic void  testInit()
  21           {
  22                _onPremD ACUri = ne w Uri(onPr emiseVIMTD ACString);
  23  
  24                _OnPremD ACwsd = ne w WebServi ceDetails( )
  25                {
  26                    Targ etURL = on PremiseVIM TDACString ,
  27                      WSUserName  = " AI ",
  28                      Password =  "
A
I"
  29                      //WSUserNa me = " AI ",
  30                      //Password  = "
A
I"
  31                };
  32           }
  33           #e ndregion I nitialize
  34  
  35  
  36           [T estMethod]
  37           pu blic void  testWHHCre ate() //VR MRest.WebA pi.WebApiU tility.Sen dReceive<C reateInter actionResp onse>(_onP remDACUri,  "CreateIn teractionR equest", r equest, nu ll, _OnPre mDACwsd);
  38           {
  39                var rand om = new R andom();
  40  
  41                //var lo gging = ne w MessageL ogging()
  42                //{
  43                //    Ig noreState  = false,
  44                //    Ma xRetry = - 1,
  45                //    Me ssageName  = "CreateI nteraction Request",
  46                //    Me ssageType  = "LOB",
  47                //    Or ganization Name = "FT P"
  48                //};
  49  
  50                var requ est = new  WHHCreateI nteraction Request
  51                {
  52                    Orga nizationNa me = "FTP" ,
  53                    //Me ssageLoggi ng = loggi ng,
  54                    Case Id = Guid. NewGuid(). ToString() ,
  55                    Case Number = r andom.Next (1000000,  9999999),
  56                    Crea tedDate =  DateTime.N ow.Date.Ad dDays(-3). ToString() ,
  57                    VIEW S_Facility __c = "629 ",
  58                    SENS ITIVE_WHVA Hotline_Su bject__c =  "This is  the subjec t",
  59                    WHVA Hotline_Co mments__c  = "These a re the com ments",
  60                    OCR_ Notes = "T his is the  OCR Notes ",
  61                    WHVA Hotline_SL A_Start_Da te_Tim = D ateTime.No w.Date.Add Days(-3).T oString(),
  62                    WHVA Hotline_SL A_Business _Days__c =  6,
  63                    VIEW S_SLA_End_ Date_DateT ime__c = D ateTime.No w.Date.Add Days(3).To String(),
  64                    Days _Until_SLA _Overdue__ c = 3,
  65                    VIEW S_Tier_1_C omplaint_C ategory__c  = "The co mplaint ca tegory",
  66                    VIEW S_Complain t_Category _Descripti on__c = "T he complai nt categor y descript ion",
  67                    Shor t_Descript ion__c = " Other comp laint type ",
  68                    Owne r = "The o wner",
  69                    Last ModifiedBy  = "Last M odified By ",
  70                    Stat us = "Stat us",
  71                    WHVA Hotline_Pr iority_One _High__c =  "Priority  One Strin g",
  72                    Prio rityOne_In dicator =  true,
  73                    WH_V A_Hotline_ Reason_Pri ority__c =  "",
  74                    Seco ndary_Phon e__c = "(1 23) 234-34 56",
  75                    WHHo tline_Othe r_Location __c = "Som e other fa cility",
  76                    View s_Administ ration__c  = "Board",
  77                    Seco ndary_Emai l__c = "te st@test.co m",
  78                    Reco rdType = " non-compla int",
  79                    VIEW S_Other_Re lationship _Informtat ion__c = " Someone ot her than t he veteran ?",
  80                    VIEW S_Relation ship_to_Ve teran_ = " Other",
  81                    Anon ymous__c =  false,
  82                    Firs tName = "J ohn",
  83                    Last Name = "Do e",
  84                    Emai l = "test@ test.test" ,
  85                    Phon e = "123-1 23-1234",
  86                    Birt hdate = "0 1/15/1977" ,
  87                    Firs tName_Prox y = "Jane" ,
  88                    Last Name_Proxy  = "Doe",
  89                    Phon e_Proxy =  "321-321-3 214",
  90                    Emai l_Proxy =  "thing@stu ff.net",
  91                    Seco ndaryPhone _Proxy = " 345-345-34 56",
  92                    Pref erredEmail _Proxy = " stuff@thin g.net",
  93                    Inte rnal_OCR_D ueDate = " 06/06/2018 ",
  94                    VISN  = "",
  95                    ICN  = "1012901 147V954482 "
  96                };
  97                try
  98                {
  99                    var  response =  WebApiUti lity.SendR eceive<WHH CreateInte ractionRes ponse>(_on PremDACUri , "WHHCrea teInteract ionRequest ", request , null, _O nPremDACws d);
  100  
  101                    var  test = res ponse.Exce ptionMessa ge;
  102                    //va r res = re quest.Send Receive<WH HCreateInt eractionRe sponse>(Me ssageProce ssType.Loc al);
  103  
  104                }
  105                catch (E xception e x)
  106                {
  107                    Cons ole.WriteL ine(ex.Mes sage);
  108                    Cons ole.WriteL ine(ex.Sta ckTrace);
  109                    Asse rt.Fail(ex .Message);
  110                }
  111           }
  112  
  113           [T estMethod]
  114           pu blic void  testWHHUpd ate() //VR MRest.WebA pi.WebApiU tility.Sen dReceive<C reateInter actionResp onse>(_onP remDACUri,  "CreateIn teractionR equest", r equest, nu ll, _OnPre mDACwsd);
  115           {
  116                var rand om = new R andom();
  117  
  118                var logg ing = new  MessageLog ging()
  119                {
  120                    Igno reState =  false,
  121                    MaxR etry = -1,
  122                    Mess ageName =  "CreateInt eractionRe quest",
  123                    Mess ageType =  "LOB",
  124                    Orga nizationNa me = "FTP"
  125                };
  126  
  127                var requ est = new  WHHUpdateS tatusReque st
  128                {
  129                    Orga nizationNa me = "FTP" ,
  130                    Mess ageLogging  = logging ,
  131                    Case Id = "C-62 9.20181234 5",
  132                    Disp ositionNot es = "Some  Notes",
  133                    Mess ageId = Gu id.NewGuid ().ToStrin g(),
  134                    Modi fiedBy = " Me",
  135                    Modi fiedOn = " 2018-05-22 T13:42:00. 000Z",
  136                    Surv eyID = "50 0r0000003X Zn6AAG",
  137                    Stat us = "Reso lved"
  138                };
  139                try
  140                {
  141                    var  response =  WebApiUti lity.SendR eceive<WHH UpdateStat usResponse >(_onPremD ACUri, "WH HUpdateSta tusRequest ", request , null, _O nPremDACws d);
  142                    var  test = "te st";
  143                    //va r test = r esponse.Ex ceptionMes sage;
  144                    //va r res = re quest.Send Receive<WH HUpdateSta tusRespons e>(Message ProcessTyp e.Local);
  145  
  146                }
  147                catch (E xception e x)
  148                {
  149                    Cons ole.WriteL ine(ex.Mes sage);
  150                    Cons ole.WriteL ine(ex.Sta ckTrace);
  151                    Asse rt.Fail(ex .Message);
  152                }
  153           }
  154  
  155       }
  156   }