public void GetPropertyValueForPhysicianTest()
        {
            // Arrange
            _target = new ConditionLogic();
            EvaluateableClaim evaluateableClaim = new EvaluateableClaim
            {
                ClaimId    = 123,
                BillType   = "123",
                Physicians =
                    new List <Physician>
                {
                    new Physician
                    {
                        FirstName     = "Raul",
                        MiddleName    = "M",
                        LastName      = "Bush",
                        PhysicianType = "Referring"
                    }
                }
            };
            //Act
            List <string> actual = _target.GetPropertyValues(evaluateableClaim, Constants.PropertyReferringPhysician);

            // Assert
            Assert.AreEqual("RaulMBush", actual[0]);
        }
        public void GetChildPropertyValuesTest()
        {
            // Arrange
            _target = new ConditionLogic();
            EvaluateableClaim evaluateableClaim = new EvaluateableClaim
            {
                ClaimId      = 123,
                BillType     = "123",
                ClaimCharges =
                    new List <ClaimCharge>
                {
                    new ClaimCharge {
                        Line = 1, RevCode = "250"
                    },
                    new ClaimCharge {
                        Line = 2, RevCode = "251"
                    }
                }
            };

            //Act
            List <string> actual = _target.GetPropertyValues(evaluateableClaim, Constants.PropertyRevCode);

            // Assert
            Assert.AreEqual(2, actual.Count);
            Assert.AreEqual("250", actual[0]);
            Assert.AreEqual("251", actual[1]);
        }
        public void GetPropertyValuesTest()
        {
            // Arrange
            _target = new ConditionLogic();
            EvaluateableClaim evaluateableClaim = new EvaluateableClaim {
                ClaimId = 123, BillType = "123"
            };

            //Act
            List <string> actual = _target.GetPropertyValues(evaluateableClaim, Constants.PropertyBillType);

            // Assert
            Assert.AreEqual("123", actual[0]);
        }
        public void GetPropertyValueForStatementCoverPeriodTest()
        {
            // Arrange
            _target = new ConditionLogic();
            EvaluateableClaim evaluateableClaim = new EvaluateableClaim {
                ClaimId = 123, BillType = "123", StatementFrom = DateTime.Now, StatementThru = DateTime.Now.AddDays(1)
            };

            //Act
            List <string> actual = _target.GetPropertyValues(evaluateableClaim, Constants.PropertyStatementCoversPeriod);

            // Assert
            Assert.AreEqual(2, actual.Count);
        }