public void BuildDRecordStringNullTest()
        {
            string expected = string.Empty;
            string actual   = DRecordLogic.BuildDRecordString(null);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void BuildDRecordStringNullUnitTest()
        {
            //Arrange
            string expected = string.Empty;

            //Act
            string actual = DRecordLogic.BuildDRecordString(null);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void BuildDRecordStringTestForNone()
        {
            DRecord dRecordRaw = new DRecord
            {
                ClaimId                 = "1.04.2",
                AdmitDiagnosisCode      = "1.04.2",
                PrincipalDiagnosisCode  = "NONE",
                SecondaryDiagnosisCodes =
                    new List <string> {
                    "4444", "5555", "9981", "0381", "2918", "9223", "30080", "5190", "5648", "7638"
                }
            };
            const string expected =
                "D1.04.2           1042        4444  5555  9981  0381  2918  9223  30080 5190  5648  7638                                                                                                                ";
            string actual = DRecordLogic.BuildDRecordString(dRecordRaw);

            Assert.AreEqual(expected, actual);
        }
Пример #4
0
        public void BuildDRecordIfSecondaryDiagnosisCodeIsNull()
        {
            //Arrange
            DRecord dRecordRaw = new DRecord
            {
                ClaimId                 = "1.04.2",
                AdmitDiagnosisCode      = "1.04.2",
                PrincipalDiagnosisCode  = "1.04.2",
                SecondaryDiagnosisCodes = null
            };

            const string expected =
                "D1.04.2           1042  1042                                                                                                                                                                            ";
            //Act
            string actual = DRecordLogic.BuildDRecordString(dRecordRaw);

            //Assert
            Assert.AreEqual(actual, expected);
        }
Пример #5
0
        public void BuildDRecordIfPrincipalDiagnosisCodeIsNull()
        {
            //Arrange
            DRecord dRecordRaw = new DRecord
            {
                ClaimId                 = "1.04.2",
                AdmitDiagnosisCode      = "1.04.2",
                PrincipalDiagnosisCode  = null,
                SecondaryDiagnosisCodes = new List <string> {
                    "4444", "5555", "9981", "0381", "2918", "92", "30080", "5190", "5648", "7638", "30081", "5191", "5649", "7639"
                }
            };

            const string expected = "D1.04.2           1042        4444  5555  9981  0381  2918  92    30080 5190  5648  7638  30081 5191  5649  7639                                                                                        ";
            //Act
            string actual = DRecordLogic.BuildDRecordString(dRecordRaw);

            //Assert
            Assert.AreEqual(actual, expected);
        }
Пример #6
0
        public void BuildDRecordStringForGeaterThan()
        {
            //Arrange
            DRecord dRecordRaw = new DRecord
            {
                ClaimId                 = "1.04.223213265525888536",
                AdmitDiagnosisCode      = "1.04.2",
                PrincipalDiagnosisCode  = "1.04.2",
                SecondaryDiagnosisCodes =
                    new List <string> {
                    "4444", "5555", "9981", "0381", "2918", "92", "30080", "5190", "5648", "7638", "30081", "5191", "5649", "7639"
                }
            };
            const string expected =
                "D1.04.2232132655258885361042  1042  4444  5555  9981  0381  2918  92    30080 5190  5648  7638  30081 5191  5649  7639                                                                                        ";
            //Act
            string actual = DRecordLogic.BuildDRecordString(dRecordRaw);

            //Assert
            Assert.AreEqual(expected, actual);
        }