public void BuildLRecordStringNullTest()
        {
            string expected = string.Empty;
            string actual   = LRecordLogic.BuildLRecordString(null);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void ValidateLRecordIfLRecordIsNull()
        {
            //Act
            string actual = LRecordLogic.BuildLRecordString(null);

            //Assert
            Assert.AreSame(actual, "");
        }
Пример #3
0
        public void BuildLRecordStringNullUnitTest()
        {
            //Arrange
            string expected = string.Empty;

            //Act
            string actual = LRecordLogic.BuildLRecordString(null);

            //Assert
            Assert.AreEqual(expected, actual);
        }
        public void BuildLRecordStringTest()
        {
            LRecord lRecordRaw = new LRecord
            {
                ClaimId            = "1.04.2",
                LineItemId         = 1,
                HcpcsProcedureCode = "00164",
                HcpcsModifiers     = "4455667788",
                ServiceDate        = DateTime.Parse("09/30/2019"),
                RevenueCode        = "0929",
                UnitsofService     = 1,
                LineItemCharge     = 0000000.00,
                LineItemFlag       = 4
            };

            const string expected = "L1.04.2           001001644455667788201909300929000000100000000004                                                                                                                                      ";
            string       actual   = LRecordLogic.BuildLRecordString(lRecordRaw);

            Assert.AreEqual(expected, actual);
        }
Пример #5
0
        public void BuildLRecordStringTestForLength()
        {
            //Arrange
            LRecord lRecord = new LRecord
            {
                ClaimId            = "1111125566644155656664",
                LineItemId         = 1,
                HcpcsProcedureCode = "1",
                HcpcsModifiers     = "GO86",
                ServiceDate        = DateTime.Parse("10/20/2019"),
                RevenueCode        = "1",
                UnitsofService     = 1,
                LineItemCharge     = 100,
                LineItemFlag       = 1
            };

            //Act
            string actual = LRecordLogic.BuildLRecordString(lRecord);

            //Assert
            Assert.IsTrue(actual.Contains("L" + lRecord.ClaimId));
        }