Пример #1
0
        public void ValidateLRecord()
        {
            //Arrange
            _target = new LRecordLogic();
            LRecord lRecord = new LRecord
            {
                ClaimId            = "1111",
                LineItemId         = 1,
                HcpcsProcedureCode = "1",
                HcpcsModifiers     = "GO86",
                ServiceDate        = DateTime.Parse("10/20/2019"),
                RevenueCode        = "1",
                UnitsofService     = 1,
                LineItemCharge     = 100,
                LineItemFlag       = 1
            };

            List <LRecord> listLRecords = new List <LRecord> {
                lRecord
            };

            //Act
            string actual = _target.GetLRecordLine(listLRecords);

            //Assert
            Assert.IsTrue(actual.Contains("L" + lRecord.ClaimId));
        }
Пример #2
0
        public void ValidatelRecordIfLineChargeIsInvalid()
        {
            //Arrange
            _target = new LRecordLogic();
            LRecord lRecord = new LRecord
            {
                ClaimId            = "111",
                LineItemId         = 1,
                HcpcsProcedureCode = "1",
                HcpcsModifiers     = "GO86",
                ServiceDate        = DateTime.Parse("10/20/2019"),
                RevenueCode        = "1",
                UnitsofService     = 1,
                LineItemCharge     = 1000000000,
                LineItemFlag       = 0
            };

            List <LRecord> listLRecords = new List <LRecord> {
                lRecord
            };

            //Act
            string actual = _target.GetLRecordLine(listLRecords);

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