Produced by Araxis Merge on 4/12/2018 7:40:39 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 | AHOBPRe_v4.4.17_bld4.zip\Web Services\AHOBPR_RESTful_Service\WCF_BusinessManagerAHOBPRTests | RegistrantDeploymentUtilitiesTests.cs | Tue Apr 10 16:46:49 2018 UTC |
| 2 | AHOBPRe_v4.4.17_bld4.zip\Web Services\AHOBPR_RESTful_Service\WCF_BusinessManagerAHOBPRTests | RegistrantDeploymentUtilitiesTests.cs | Thu Apr 12 23:05:44 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 166 |
| 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 Vete ransAffair s.Registri es.Busines sAHOBPR; | |
| 2 | using Vete ransAffair s.Registri es.Busines sManagerAH OBPR.Emis; | |
| 3 | using Micr osoft.Visu alStudio.T estTools.U nitTesting ; | |
| 4 | using Vete ransAffair s.Registri es.Busines sManagerAH OBPR; | |
| 5 | namespace WCF_Busine ssManagerA HOBPRTests | |
| 6 | { | |
| 7 | [TestC lass] | |
| 8 | public class Reg istrantDep loymentUti litiesTest s | |
| 9 | { | |
| 10 | string con = "Data S ource= DN S
|
|
| 11 | // [TestMetho d] | |
| 12 | // public voi d VerifyDe ploymentSt age_IfUser IsElibible AndVerifie d_Deployme ntIsSetToV erified() | |
| 13 | // { | |
| 14 | // var cu t = new Re gistrantDe ploymentUt ilities(co n); | |
| 15 | // var de ployment = new REGIS TRANT_DEPL OYMENT(); | |
| 16 | // deploy ment.STD_D EPLOYMENT_ STAGE_ID = 42; | |
| 17 | // deploy ment.REGIS TRANT_DEPL OYMENT_ID = 509544; | |
| 18 | // deploy ment.USER_ VERIFIED_F LAG = true ; | |
| 19 | // deploy ment.IS_EL IGIBLE_FLA G = true; | |
| 20 | // cut.Ve rifyDeploy mentStage( deployment ); | |
| 21 | // Assert .AreEqual( (int)Enums .Deploymen tStage.Ver ified, dep loyment.ST D_DEPLOYME NT_STAGE_I D); | |
| 22 | // } | |
| 23 | [T estMethod] | |
| 24 | pu blic void VerifyDepl oymentStag e_IfDeploy mentIsNEli bibleAndVe rifiedDepl oymentIsSe tToVerifie d() | |
| 25 | { | |
| 26 | var cut = new Regi strantDepl oymentUtil ities(con) ; | |
| 27 | var depl oyment = n ew REGISTR ANT_DEPLOY MENT(); | |
| 28 | deployme nt.STD_DEP LOYMENT_ST AGE_ID = 4 2; | |
| 29 | deployme nt.REGISTR ANT_DEPLOY MENT_ID = 509544; | |
| 30 | deployme nt.USER_VE RIFIED_FLA G = false; | |
| 31 | deployme nt.IS_ELIG IBLE_FLAG = true; | |
| 32 | cut.Veri fyDeployme ntStage(de ployment); | |
| 33 | Assert.A reEqual((i nt)Enums.D eploymentS tage.Refut ed, deploy ment.STD_D EPLOYMENT_ STAGE_ID); | |
| 34 | } | |
| 35 | [T estMethod] | |
| 36 | pu blic void SetDeploym entStage_D eploymentI sN2Elibibl eAndVerifi edDeployme ntIsSetToV erified() | |
| 37 | { | |
| 38 | var cut = new Regi strantDepl oymentUtil ities(con) ; | |
| 39 | var depl oyment = n ew REGISTR ANT_DEPLOY MENT(); | |
| 40 | deployme nt.STD_DEP LOYMENT_ST AGE_ID = 4 2; | |
| 41 | deployme nt.REGISTR ANT_DEPLOY MENT_ID = 509544; | |
| 42 | deployme nt.USER_VE RIFIED_FLA G = false; | |
| 43 | deployme nt.IS_ELIG IBLE_FLAG = true; | |
| 44 | cut.SetD eploymentS tage(deplo yment, 0); | |
| 45 | Assert.A reEqual((i nt)Enums.D eploymentS tage.New, deployment .STD_DEPLO YMENT_STAG E_ID); | |
| 46 | } | |
| 47 | [T estMethod] | |
| 48 | pu blic void SetDeploym entStage_N otEligible IfUserVeri fiedFlagIs SetToFalse () | |
| 49 | { | |
| 50 | var cut = new Regi strantDepl oymentUtil ities(con) ; | |
| 51 | var depl oyment = n ew REGISTR ANT_DEPLOY MENT(); | |
| 52 | deployme nt.STD_DEP LOYMENT_ST AGE_ID = 2 ; | |
| 53 | deployme nt.REGISTR ANT_DEPLOY MENT_ID = 509544; | |
| 54 | deployme nt.USER_VE RIFIED_FLA G = false; | |
| 55 | deployme nt.IS_ELIG IBLE_FLAG = true; | |
| 56 | cut.SetD eploymentS tage(deplo yment, 0); | |
| 57 | Assert.A reEqual((i nt)Enums.D eploymentS tage.NotEl igible, de ployment.S TD_DEPLOYM ENT_STAGE_ ID); | |
| 58 | } | |
| 59 | [T estMethod] | |
| 60 | pu blic void SetDeploym entStage_R efutedIfUs erVerified FlagIsSetT oFalse() | |
| 61 | { | |
| 62 | var cut = new Regi strantDepl oymentUtil ities(con) ; | |
| 63 | var depl oyment = n ew REGISTR ANT_DEPLOY MENT(); | |
| 64 | deployme nt.STD_DEP LOYMENT_ST AGE_ID = 2 ; | |
| 65 | deployme nt.REGISTR ANT_DEPLOY MENT_ID = 509544; | |
| 66 | deployme nt.USER_VE RIFIED_FLA G = false; | |
| 67 | deployme nt.IS_ELIG IBLE_FLAG = true; | |
| 68 | cut.SetD eploymentS tage(deplo yment, 7); | |
| 69 | Assert.A reEqual((i nt)Enums.D eploymentS tage.Refut ed, deploy ment.STD_D EPLOYMENT_ STAGE_ID); | |
| 70 | } | |
| 71 | // [TestMetho d] | |
| 72 | // public voi d SetDeplo ymentStage _IsN5Elibi bleAndVeri fiedDeploy mentIsSetT oVerified( ) | |
| 73 | // { | |
| 74 | // var cu t = new Re gistrantDe ploymentUt ilities(co n); | |
| 75 | // var de ployment = new REGIS TRANT_DEPL OYMENT(); | |
| 76 | // deploy ment.STD_D EPLOYMENT_ STAGE_ID = (int)Enum s.Deployme ntStage.No tEligible; | |
| 77 | // deploy ment.REGIS TRANT_DEPL OYMENT_ID = 509544; | |
| 78 | // deploy ment.USER_ VERIFIED_F LAG = true ; | |
| 79 | // deploy ment.IS_EL IGIBLE_FLA G = true; | |
| 80 | // cut.Se tDeploymen tStage(dep loyment, 7 ); | |
| 81 | // Assert .AreEqual( (int)Enums .Deploymen tStage.Ver ified, dep loyment.ST D_DEPLOYME NT_STAGE_I D); | |
| 82 | // } | |
| 83 | } | |
| 84 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.