Beispiel #1
0
 public void WhenIInquireAMemberCurrentOOPAmount()
 {
     try
     {
         // Action & Asserion
         using (var context = new BenefitDbContext(_options))
         {
             var benefitDb = new BenefitRepository(context);
             var benefit   = new MultiTierBenefit(benefitDb);
             _claimTotalMember1 = benefit.GetOopMaxMet("X0001");
             _claimTotalMember2 = benefit.GetOopMaxMet("X0002");
         }
     }
     catch (Exception e)
     {
         // Any exception occurs, it should be considered testing failed.
         e.Message.Should().BeNullOrEmpty();
     }
     finally
     {
         if (_conn.State != ConnectionState.Closed)
         {
             _conn.Close();
         }
         _conn.Dispose();
     }
 }
Beispiel #2
0
        public void Test_MultiTierBenefits_GetOopMaxMet()
        {
            var multiTierBenefit = new MultiTierBenefit(_mockBenefitRepo.Object);
            var benefitOopMaxMet = multiTierBenefit.GetOopMaxMet("X0001");

            benefitOopMaxMet.Should().Be(500);
        }