348. EPMO Open Source Coordination Office Redaction File Detail Report

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.

348.1 Files compared

# Location File Last Modified
1 PATS_R_SourceCode.zip\PATSRIntegrationsCRMOL\UnitTests MedalliaTests.cs Mon Apr 29 14:01:40 2019 UTC
2 PATS_R_SourceCode.zip\PATSRIntegrationsCRMOL\UnitTests MedalliaTests.cs Thu May 23 01:30:07 2019 UTC

348.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 480
Changed 1 2
Inserted 0 0
Removed 0 0

348.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

348.4 Active regular expressions

No regular expressions were active.

348.5 Comparison detail

  1   using Syst em;
  2   using Micr osoft.Visu alStudio.T estTools.U nitTesting ;
  3   using Meda llia.VEFT. Messages;
  4   using WHH. VEFT.Messa ges;
  5   using VRM. Integratio n.Serviceb us.Core;
  6   using VRM. Integratio n.Serviceb us.Extensi ons;
  7   using Syst em.IO;
  8   using Syst em.Xml;
  9   using VEIS .Utilities ;
  10   using VEIS .Utilities .Models;
  11  
  12   namespace  PATSRUnitT ests
  13   {
  14       [TestC lass]
  15       public  class Med alliaUnitT esting
  16       {
  17           pr ivate stat ic string  _orgName;
  18  
  19           pr ivate stat ic Guid _c rmeUserId  = Guid.Par se("6FF0CA 08-2FD2-E4 11-B6F7-00 155D5575E0 ");
  20  
  21             private st atic strin g veisUrl  = "https:/ / DNS . URL /";
  22  
  23           pr ivate stat ic string  clientId =  "58d50ca3 -b921-4d9b -ac76-8965 be2eb80b";
  24  
  25           pr ivate stat ic string  clientSecr et = "4RdV Ddhq8cv/h2 263Ojdy8fD 3JI9OwHcr5 hOkntAwTc= ";
  26  
  27           pr ivate stat ic string  tenantId =  "f7c49e36 -971b-42c7 -b244-a88e ed6c0bf6";
  28  
  29           pr ivate stat ic string  veisOrgNam e = "CRMED EV";
  30  
  31           pr ivate stat ic string  resourceId  = "4a7747 6c-ceed-45 db-ad7e-ac 2bbbc4f72a ";
  32  
  33           pr ivate stat ic string  subscripti onKey = "8 8784cf9396 e41dab087c 90a5da0c2c 1";
  34  
  35           pr ivate stat ic string  medalliaPa th = "pats r.lob.meda llia/api";
  36  
  37           pr ivate stat ic string  irisPath =  "patsr.lo b.iris/api ";
  38  
  39           pr ivate stat ic string  whhPath =  "patsr.lob .whh/api";
  40           #r egion Init ialize
  41           [T estInitial ize]
  42           pu blic void  testInit()
  43           {
  44           }
  45           #e ndregion I nitialize
  46  
  47           [T estMethod]
  48           pu blic void  testCreate Interactio n() //VRMR est.WebApi .WebApiUti lity.SendR eceive<Cre ateInterac tionRespon se>(_onPre mDACUri, " CreateInte ractionReq uest", req uest, null , _OnPremD ACwsd);
  49           {
  50  
  51                var logg ing = new  MessageLog ging()
  52                {
  53                    Igno reState =  false,
  54                    MaxR etry = -1,
  55                    Mess ageName =  "CreateInt eractionRe quest",
  56                    Mess ageType =  "LOB",
  57                    Orga nizationNa me = "FTP" ,
  58                    Pare ntMessageN ame = "Uni tTest"
  59                };
  60  
  61                CreateIn teractionR equest cre ateInterac tionReques t = new Cr eateIntera ctionReque st
  62                {
  63                    Call backNumber  = "555-55 5-1234",
  64                    Cont actFirstNa me = "John ",
  65                    Cont actLastNam e = "Doe",
  66                    Date OfBirth =  "12/01/197 0",
  67                    Date OfContact  = DateTime .Now.Date. ToString() ,
  68                    Expe rienceComm ents = "LO VE IT",
  69                    Expe rienceScor e = "5",
  70                    Last Four = "12 34",
  71                    Orga nizationNa me = "FTP" ,
  72                    Surv eyID = "12 34567",
  73                    Surv eyLink = " WWW.BING.C OM",
  74                    Feed backType =  "Complime nt",
  75                    Aler tType = "H omelessnes s",
  76                    Stat ionID = "3 33",
  77                    Surv eyGroup =  "Outpatien t Survey",
  78                    Cont actEmail =  "Test@tes t.com",
  79                    Mess ageLogging  = logging
  80                };
  81                try
  82                {
  83                    Veis Config con fig = Retr ieveVeisCo nfig(medal liaPath);
  84                    Crea teInteract ionRespons e createIn teractionR esponse =  WebApiUtil ity.SendRe ceiveVeisR equest<Cre ateInterac tionRespon se>(config , "Interac tion", cre ateInterac tionReques t);
  85  
  86                    var  test = cre ateInterac tionRespon se.Excepti onMessage;
  87                }
  88                catch (E xception e x)
  89                {
  90                    Cons ole.WriteL ine(ex.Mes sage);
  91                    Cons ole.WriteL ine(ex.Sta ckTrace);
  92                    Asse rt.Fail(ex .Message);
  93                }
  94           }
  95  
  96  
  97           [T estMethod]
  98           pu blic void  testMedali aFAILURES( ) //VRMRes t.WebApi.W ebApiUtili ty.SendRec eive<Creat eInteracti onResponse >(_onPremD ACUri, "Cr eateIntera ctionReque st", reque st, null,  _OnPremDAC wsd);
  99           {
  100  
  101                var logg ing = new  MessageLog ging()
  102                {
  103                    Igno reState =  false,
  104                    MaxR etry = -1,
  105                    Mess ageName =  "CreateInt eractionRe quest",
  106                    Mess ageType =  "LOB",
  107                    Orga nizationNa me = "FTP"
  108                };
  109  
  110                var requ est = new  CreateInte ractionReq uest
  111                {
  112                    Call backNumber  = "555-55 5-1234",
  113                    Cont actFirstNa me = "John ",
  114                    //Co ntactLastN ame = "Doe ",
  115                    Date OfBirth =  "12/01/197 0",
  116                    Date OfContact  = "THIS IS  NOT A DAT E",
  117                    Expe rienceComm ents = "LO VE IT",
  118                    Expe rienceScor e = "5",
  119                    Last Four = "12 34",
  120                    Orga nizationNa me = "FTP" ,
  121                    Surv eyID = "as df",
  122                    Surv eyLink = " WWW.BING.C OM",
  123                    Feed backType =  "Complime nt",
  124                    Aler tType = "H omelessnes s",
  125                    Stat ionID = "3 33",
  126                    Surv eyGroup =  "Outpatien t Survey",
  127                    Cont actEmail =  "Test@tes t.com",
  128                    Mess ageLogging  = logging
  129                };
  130                try
  131                {
  132                    Veis Config con fig = Retr ieveVeisCo nfig(medal liaPath);
  133                    Crea teInteract ionRespons e createIn teractionR esponse =  WebApiUtil ity.SendRe ceiveVeisR equest<Cre ateInterac tionRespon se>(config , "Interac tion", req uest);
  134  
  135                    var  test = cre ateInterac tionRespon se.Excepti onMessage;
  136                }
  137                catch (E xception e x)
  138                {
  139                    Cons ole.WriteL ine(ex.Mes sage);
  140                    Cons ole.WriteL ine(ex.Sta ckTrace);
  141                    Asse rt.Fail(ex .Message);
  142                }
  143           }
  144  
  145           [T estMethod]
  146           pu blic void  TestS3Retr ieve()
  147           {
  148                try
  149                {
  150                    Retr ieveFromS3 Request re quest = ne w Retrieve FromS3Requ est()
  151                    {
  152                         MessageId  = Guid.New Guid().ToS tring(),
  153                         Organizati onName = " ftp",
  154                         MessageLog ging = new  VRM.Integ ration.Ser vicebus.Ex tensions.M essageLogg ing()
  155                         {
  156                             Ignore State = fa lse,
  157                             MaxRet ry = -1,
  158                             Messag eName = "R etrieveFro mS3Request ",
  159                             Messag eType = "L OB",
  160                             Organi zationName  = "FTP",
  161                             Parent MessageNam e = "UnitT est"
  162                         }
  163                    };
  164  
  165                    Veis Config con fig = Retr ieveVeisCo nfig(medal liaPath);
  166                    Retr ieveFromS3 Response r esponse =  WebApiUtil ity.SendRe ceiveVeisR equest<Ret rieveFromS 3Response> (config, " AWSRetriev e", reques t);
  167                    Asse rt.AreNotE qual(null,  response) ;
  168                }
  169                catch (E xception e x)
  170                {
  171                    Cons ole.WriteL ine(ex.Mes sage);
  172                    Cons ole.WriteL ine(ex.Sta ckTrace);
  173                    Asse rt.Fail(ex .Message);
  174                }
  175           }
  176  
  177           [T estMethod]
  178           pu blic void  TestS3Put( )
  179           {
  180                try
  181                {
  182                }
  183                catch (E xception e x)
  184                {
  185                }
  186           }
  187  
  188           [T estMethod]
  189           pu blic void  testRespon seNoLoggin g()
  190           {
  191                try
  192                {
  193                    Upda teStatusRe quest requ est = new  UpdateStat usRequest( )
  194                    {
  195                         SurveyID =  "1234567" ,
  196                         Status = " Closed"
  197                    };
  198  
  199                    Veis Config con fig = Retr ieveVeisCo nfig(medal liaPath);
  200                    Retr ieveFromS3 Response r esponse =  WebApiUtil ity.SendRe ceiveVeisR equest<Ret rieveFromS 3Response> (config, " Status", r equest);
  201  
  202                    Asse rt.AreNotE qual(null,  response) ;
  203                }
  204                catch (E xception e x)
  205                {
  206                    Cons ole.WriteL ine(ex.Mes sage);
  207                    Cons ole.WriteL ine(ex.Sta ckTrace);
  208                    Asse rt.Fail(ex .Message);
  209                }
  210           }
  211  
  212           in ternal sta tic VeisCo nfig Retri eveVeisCon fig(string  path)
  213           {
  214                VeisConf ig config  = new Veis Config()
  215                {
  216                    OrgO verride =  veisOrgNam e,
  217                };
  218  
  219                config.O rgName = v eisOrgName ;
  220  
  221                config.V eisConfigu ration = n ew VeisCon figuration ()
  222                {
  223                    CRMA uthInfo =  new CRMAut hTokenConf iguration( )
  224                    {
  225                         ClientAppl icationId  = clientId ,
  226                         ClientSecr et = clien tSecret,
  227                         TenantId =  tenantId,
  228                         ResourceId  = resourc eId,
  229  
  230                    },
  231                    SvcC onfigInfo  = new VEIS SvcLOBConf iguration( )
  232                    {
  233                         ApimSubscr iptionKey  = subscrip tionKey,
  234                    }
  235                };
  236  
  237                config.V eisConfigu ration.Svc ConfigInfo .SvcLOBSer viceUrl =  veisUrl +  path;
  238                return c onfig;
  239           }
  240       }
  241   }