Пример #1
0
        public void FeeNoCache_GetFee_ExactNotFound()
        {
            FeeNoCache feeNoCache = new FeeNoCache();
            Fee        createdFee = CreateSingleFee(MethodBase.GetCurrentMethod().Name, _defaultFeeAmt * _rand.NextDouble(), true, true);
            Fee        actualFee  = feeNoCache.GetFee(_listProcCodes.Last().CodeNum, createdFee.FeeSched, createdFee.ClinicNum, createdFee.ProvNum);

            Assert.IsNull(actualFee);
        }
Пример #2
0
        public void FeeNoCache_GetFee_Exact()
        {
            FeeNoCache feeNoCache  = new FeeNoCache();
            Fee        expectedFee = CreateSingleFee(MethodBase.GetCurrentMethod().Name, _defaultFeeAmt * _rand.NextDouble(), true, true);
            Fee        actualFee   = feeNoCache.GetFee(expectedFee.CodeNum, expectedFee.FeeSched, expectedFee.ClinicNum, expectedFee.ProvNum);

            Assert.IsTrue(AreSimilar(expectedFee, actualFee));
        }
Пример #3
0
        public void FeeNoCache_GetFee_PartialClinicNoProv()
        {
            FeeNoCache feeNoCache  = new FeeNoCache();
            Fee        expectedFee = CreateSingleFee(MethodBase.GetCurrentMethod().Name, _defaultFeeAmt * _rand.NextDouble(), true, false);
            long       provNum     = ProviderT.CreateProvider(MethodBase.GetCurrentMethod().Name);
            Fee        actualFee   = feeNoCache.GetFee(expectedFee.CodeNum, expectedFee.FeeSched, expectedFee.ClinicNum, provNum);

            Assert.IsTrue(AreSimilar(expectedFee, actualFee));
        }
Пример #4
0
        public void FeeNoCache_GetFee_PartialNotFound()
        {
            FeeNoCache feeNoCache = new FeeNoCache();
            string     name       = MethodBase.GetCurrentMethod().Name;
            Fee        createdFee = CreateSingleFee(name, _defaultFeeAmt * _rand.NextDouble());
            Clinic     clinic     = ClinicT.CreateClinic(name);
            long       provNum    = ProviderT.CreateProvider(name);

            Assert.IsNull(feeNoCache.GetFee(_listProcCodes.Last().CodeNum, createdFee.FeeSched, clinic.ClinicNum, provNum));
        }
Пример #5
0
        public void FeeNoCache_GetFee_PartialDefaultForCode()
        {
            FeeNoCache feeNoCache  = new FeeNoCache();
            string     name        = MethodBase.GetCurrentMethod().Name;
            Fee        expectedFee = CreateSingleFee(name, _defaultFeeAmt * _rand.NextDouble(), isGlobalFeeSched: true);
            Clinic     clinic      = ClinicT.CreateClinic(name);
            long       provNum     = ProviderT.CreateProvider(name);
            Fee        actualFee   = feeNoCache.GetFee(expectedFee.CodeNum, expectedFee.FeeSched, clinic.ClinicNum, provNum);

            Assert.IsTrue(AreSimilar(expectedFee, actualFee));
        }
Пример #6
0
        public void FeeNoCache_GetFee_GlobalFeeSched()
        {
            FeeNoCache feeNoCache  = new FeeNoCache();
            string     name        = MethodBase.GetCurrentMethod().Name;
            Fee        expectedFee = CreateSingleFee(name, _defaultFeeAmt * _rand.NextDouble(), false, false, isGlobalFeeSched: true);
            Fee        otherFee1   = CreateSingleFee(name, _defaultFeeAmt * _rand.NextDouble(), true, false, expectedFee.FeeSched, expectedFee.CodeNum);
            Fee        otherFee2   = CreateSingleFee(name, _defaultFeeAmt * _rand.NextDouble(), false, true, expectedFee.FeeSched, expectedFee.CodeNum);
            Fee        otherFee3   = CreateSingleFee(name, _defaultFeeAmt * _rand.NextDouble(), true, true, expectedFee.FeeSched, expectedFee.CodeNum);
            Fee        actualFee   = feeNoCache.GetFee(expectedFee.CodeNum, expectedFee.FeeSched, otherFee1.ClinicNum, otherFee2.ProvNum);

            Assert.IsTrue(AreSimilar(expectedFee, actualFee));
        }