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\EMIS | PaymentHistoryManagerTests.cs | Tue Apr 10 16:46:49 2018 UTC |
| 2 | AHOBPRe_v4.4.17_bld4.zip\Web Services\AHOBPR_RESTful_Service\WCF_BusinessManagerAHOBPRTests\EMIS | PaymentHistoryManagerTests.cs | Thu Apr 12 23:04:09 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 326 |
| 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 Vete ransAffair s.Registri es.Busines sManagerAH OBPR.Emis; | |
| 4 | using Vete ransAffair s.Registri es.Busines sAHOBPR.Pa ymentServi ce; | |
| 5 | using Vete ransAffair s.Registri es.Busines sAHOBPR; | |
| 6 | ||
| 7 | namespace WCF_Busine ssManagerA HOBPRTests .EMIS | |
| 8 | { | |
| 9 | [TestC lass] | |
| 10 | public class Pay mentHistor yManagerTe sts | |
| 11 | { | |
| 12 | Pa ymentHisto ryManager _cut; | |
| 13 | ||
| 14 | [T estInitial ize()] | |
| 15 | pu blic void MyTestInit ialize() | |
| 16 | { | |
| 17 | _cut = new PaymentHi storyManag er("Data S ource = DN S
|
|
| 18 | } | |
| 19 | [T estMethod] | |
| 20 | pu blic void GetRegistr antHistory _Throws_Ex ception_Wh en_Given_N on_Numeral s_For_Edip i() | |
| 21 | { | |
| 22 | AssertEx ception.Th rows<Argum entExcepti on>(() => _cut.GetRe gistrantHi story("xxx xxxxxxxxx" )); | |
| 23 | } | |
| 24 | [T estMethod] | |
| 25 | pu blic void GetRegistr antHistory _Throws_Ex ception_Wh en_Given_E dipi_With_ Less_Than_ Ten_Digits () | |
| 26 | { | |
| 27 | AssertEx ception.Th rows<Argum entExcepti on>(() => _cut.GetRe gistrantHi story("123 456789")); | |
| 28 | } | |
| 29 | [T estMethod] | |
| 30 | pu blic void GetRegistr antHistory _Throws_Ex ception_Wh en_Given_E dipi_With_ More_Than_ Ten_Digits () | |
| 31 | { | |
| 32 | AssertEx ception.Th rows<Argum entExcepti on>(() => _cut.GetRe gistrantHi story("123 456789012" )); | |
| 33 | } | |
| 34 | [T estMethod] | |
| 35 | pu blic void GetRegistr antHistory _Returns_C orrect_Num ber_Of_Pay Grade_Entr ies() | |
| 36 | { | |
| 37 | //User 6 001010001 has TWO pa ygrade his tory entri es in EMIS | |
| 38 | var actu al = _cut. GetRegistr antHistory ("60010100 01"); | |
| 39 | Assert.A reEqual(2, actual.Ke ys.Count); | |
| 40 | } | |
| 41 | [T estMethod] | |
| 42 | pu blic void LookupPayP lan_Return sObjectFro mDB() | |
| 43 | { | |
| 44 | string b ranchOfSer viceCode = "A"; | |
| 45 | PayGrade HistoryDat a payGrade = new Pay GradeHisto ryData | |
| 46 | { | |
| 47 | PayG radeCode = "05", | |
| 48 | payP lanCode = "ME", | |
| 49 | serv iceRankNam eCode = "S GT", | |
| 50 | serv iceRankNam eTxt = "Se rgeant" | |
| 51 | }; | |
| 52 | var expe ctedPayPla n = new ST D_PAYPLAN | |
| 53 | { | |
| 54 | SERV ICE_CODE = "A", | |
| 55 | PAY_ PLAN_CODE_ SHORT = "M E", | |
| 56 | PAYG RADE_CODE = "05", | |
| 57 | RANK _CODE = "S GT", | |
| 58 | RANK _TEXT = "S ergeant" | |
| 59 | }; | |
| 60 | var actu al = _cut. LookupPayP lan(payGra de, branch OfServiceC ode); | |
| 61 | Assert.A reEqual(ex pectedPayP lan.SERVIC E_CODE, br anchOfServ iceCode); | |
| 62 | Assert.A reEqual(ex pectedPayP lan.PAY_PL AN_CODE_SH ORT, "ME") ; | |
| 63 | Assert.A reEqual(ex pectedPayP lan.PAYGRA DE_CODE, " 05"); | |
| 64 | Assert.A reEqual(ex pectedPayP lan.RANK_C ODE, "SGT" ); | |
| 65 | Assert.A reEqual(ex pectedPayP lan.RANK_T EXT, "Serg eant"); | |
| 66 | Assert.A reEqual( 8 9, actual. STD_PAYPLA N_ID); | |
| 67 | } | |
| 68 | ||
| 69 | [T estMethod] | |
| 70 | pu blic void LookupPayP lan_Return s_Correct_ Rank_For_T imePeriod( ) | |
| 71 | { | |
| 72 | string b ranchOfSer viceCode = "A"; | |
| 73 | PayGrade HistoryDat a payGrade = new Pay GradeHisto ryData | |
| 74 | { | |
| 75 | PayG radeCode = "04", | |
| 76 | payP lanCode = "MO", | |
| 77 | serv iceRankNam eCode = "M AJ", | |
| 78 | serv iceRankNam eTxt = "Ma jor" | |
| 79 | }; | |
| 80 | var expe ctedPayPla n = new ST D_PAYPLAN | |
| 81 | { | |
| 82 | SERV ICE_CODE = "A", | |
| 83 | PAY_ PLAN_CODE_ SHORT = "M O", | |
| 84 | PAYG RADE_CODE = "04", | |
| 85 | RANK _CODE = "M AJ", | |
| 86 | RANK _TEXT = "M ajor" | |
| 87 | }; | |
| 88 | var actu al = _cut. LookupPayP lan(payGra de, branch OfServiceC ode); | |
| 89 | Assert.A reEqual(ex pectedPayP lan.SERVIC E_CODE, br anchOfServ iceCode); | |
| 90 | Assert.A reEqual(ex pectedPayP lan.PAY_PL AN_CODE_SH ORT, "MO") ; | |
| 91 | Assert.A reEqual(ex pectedPayP lan.PAYGRA DE_CODE, " 04"); | |
| 92 | Assert.A reEqual(ex pectedPayP lan.RANK_C ODE, "MAJ" ); | |
| 93 | Assert.A reEqual(ex pectedPayP lan.RANK_T EXT, "Majo r"); | |
| 94 | Assert.A reEqual(10 4, actual. STD_PAYPLA N_ID); | |
| 95 | } | |
| 96 | [T estMethod] | |
| 97 | pu blic void LookupPayP lan_Return s_Null_If_ No_Matchin g_PayPlan_ In_DB() | |
| 98 | { | |
| 99 | string b ranchOfSer viceCode = "A"; | |
| 100 | PayGrade HistoryDat a payGrade = new Pay GradeHisto ryData | |
| 101 | { | |
| 102 | PayG radeCode = "05", | |
| 103 | payP lanCode = "ME", | |
| 104 | serv iceRankNam eCode = "S SGT", | |
| 105 | serv iceRankNam eTxt = "Se rgeant" | |
| 106 | }; | |
| 107 | var expe ctedPayPla n = new ST D_PAYPLAN | |
| 108 | { | |
| 109 | SERV ICE_CODE = "A", | |
| 110 | PAY_ PLAN_CODE_ SHORT = "M E", | |
| 111 | PAYG RADE_CODE = "05", | |
| 112 | RANK _CODE = "S GT", | |
| 113 | RANK _TEXT = "S ergeant" | |
| 114 | }; | |
| 115 | var actu al = _cut. LookupPayP lan(payGra de, branch OfServiceC ode); | |
| 116 | Assert.I sNull(actu al); | |
| 117 | } | |
| 118 | // [TestMetho d] | |
| 119 | // public voi d IsMatch_ Returns_Tr ue_On_Matc h() | |
| 120 | // { | |
| 121 | // string branchOfS erviceCode = "A"; | |
| 122 | // PayGra deHistoryD ata payGra de = new P ayGradeHis toryData | |
| 123 | // { | |
| 124 | // Pa yGradeCode = "05", | |
| 125 | // pa yPlanCode = "ME", | |
| 126 | // se rviceRankN ameCode = "SGT", | |
| 127 | // se rviceRankN ameTxt = " Sergeant" | |
| 128 | // }; | |
| 129 | // var db PayPlan = new STD_PA YPLAN | |
| 130 | // { | |
| 131 | // SE RVICE_CODE = "A", | |
| 132 | // PA Y_PLAN_COD E_SHORT = "ME", | |
| 133 | // PA YGRADE_COD E = "05", | |
| 134 | // RA NK_CODE = "SGT", | |
| 135 | // RA NK_TEXT = "Sergeant" | |
| 136 | // }; | |
| 137 | // var ac tual = _cu t.IsMatch( dbPayPlan, payGrade, branchOfS erviceCode ); | |
| 138 | // Assert .AreEqual( true, actu al); | |
| 139 | // } | |
| 140 | // [TestMetho d] | |
| 141 | // public voi d IsMatch_ Returns_Tr ue_Even_If _Comparing _Differing _UpperLowe rCased_Pro perties() | |
| 142 | // { | |
| 143 | // string branchOfS erviceCode = "A"; | |
| 144 | // PayGra deHistoryD ata payGra de = new P ayGradeHis toryData | |
| 145 | // { | |
| 146 | // Pa yGradeCode = "05", | |
| 147 | // pa yPlanCode = "me", | |
| 148 | // se rviceRankN ameCode = "sgt", | |
| 149 | // se rviceRankN ameTxt = " SERGEANT" | |
| 150 | // }; | |
| 151 | // var db PayPlan = new STD_PA YPLAN | |
| 152 | // { | |
| 153 | // SE RVICE_CODE = "A", | |
| 154 | // PA Y_PLAN_COD E_SHORT = "ME", | |
| 155 | // PA YGRADE_COD E = "05", | |
| 156 | // RA NK_CODE = "SGT", | |
| 157 | // RA NK_TEXT = "Sergeant" | |
| 158 | // }; | |
| 159 | // var ac tual = _cu t.IsMatch( dbPayPlan, payGrade, branchOfS erviceCode ); | |
| 160 | // Assert .AreEqual( true, actu al); | |
| 161 | // } | |
| 162 | ||
| 163 | } | |
| 164 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.