public void ValidateCRecordIfPatientDataIsNull()
        {
            //Arrange
            _target = new CRecordLogic();
            CRecord cRecordRaw = new CRecord
            {
                ClaimId        = "1.04.2",
                Sex            = 1,
                FromDate       = DateTime.Parse("09/12/2019"),
                ThruDate       = DateTime.Parse("10/20/2019"),
                ConditionCodes = new List <string> {
                    "20", "21", "22", "23", "24", "25", "26"
                },
                BillType             = "331",
                Npi                  = string.Empty,
                Oscar                = string.Empty,
                PatientStatus        = "1",
                OppsFlag             = 1,
                OccurrenceCodes      = null,
                PatientFirstName     = "ANUPAMA",
                PatientLastName      = "SAIRAM",
                PatientMiddleInitial = "A",
                BeneAmount           = 50.35,
                BloodPint            = 2,
                PatientData          = null
            };
            const string expected = "";

            //Act
            string actual = _target.GetCRecordLine(cRecordRaw);

            //Assert
            Assert.AreEqual(actual, expected);
        }
        public void ValidateCRecordIfNull()
        {
            //Arrange
            _target = new CRecordLogic();
            const string expected = "";

            //Act
            string actual = _target.GetCRecordLine(null);

            //Assert
            Assert.AreEqual(actual, expected);
        }
        public void ValidateCRecordIfOccurrenceCodesIsInValid()
        {
            //Arrange
            _target = new CRecordLogic();
            CRecord cRecordRaw = new CRecord
            {
                ClaimId        = "1.04.20",
                Sex            = 1,
                FromDate       = DateTime.Parse("09/12/2019"),
                ThruDate       = DateTime.Parse("10/20/2019"),
                ConditionCodes = new List <string> {
                    "20", "21", "22", "23", "24", "25", "26"
                },
                BillType        = "331",
                Npi             = string.Empty,
                Oscar           = string.Empty,
                PatientStatus   = "1",
                OppsFlag        = 1,
                OccurrenceCodes = new List <string> {
                    "Test Occurance Code"
                },
                PatientFirstName     = "ANUPAMA",
                PatientLastName      = "SAIRAM",
                PatientMiddleInitial = "A",
                BeneAmount           = 50.35,
                BloodPint            = 2,
                PatientData          = new PatientData
                {
                    FirstName  = "ANUPAMA",
                    LastName   = "SAIRAM",
                    MiddleName = "A",
                    Medicare   = "",
                    Gender     = 1,
                    Status     = "1",
                    Dob        = DateTime.Parse("10/20/2000"),
                }
            };

            //Act
            string actual = _target.GetCRecordLine(cRecordRaw);

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