Example #1
0
        public void ReturnPatientList()
        {
            //arrange
            var expected = 1;
            var patient  = new Patient();

            patient.IdFormatSwitch   = true;
            patient.PatientFirstName = "Ha";
            patient.PatientLastName  = "Vo";
            patient.BillId           = "100";
            patient.PatientCopay     = 50;

            var charge = new Charge();

            charge.ModifierFour         = "AA";
            charge.PrimaryPaymentAmount = 50;
            patient.ChargeList.Add(charge);

            //act
            var retrievePatients = new RetrievePatients();

            retrievePatients.PatientList.Add(patient);
            var actual = retrievePatients.PatientList.Count;

            //assert
            Assert.AreEqual(expected, actual);
        }
        public void AddChargeToPatientTest()
        {
            var actual           = 1;
            var retrievePatients = new RetrievePatients();
            var patient          = new Patient();

            patient.IdFormatSwitch   = true;
            patient.PatientFirstName = "John";
            patient.PatientLastName  = "Smith";
            patient.BillId           = "100";
            patient.PatientCopay     = 50;


            var charge = new Charge();

            charge.PrimaryProcedureCode = "99215";
            charge.PrimaryPaymentAmount = 50;
            patient.ChargeList.Add(charge);
            var result = patient.ChargeList.Count;

            Assert.AreEqual(actual, result);
        }