示例#1
0
文件: BOTest.cs 项目: ocs72/Sandbox
        public void Calc_1_Dependent_1_ANameDecorator_AName()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

            DependentDecorator dd = new DependentDecorator(bb);

            ANameDecorator ad = new ANameDecorator(dd, "xdfsde tttreeee Areess");

            Assert.AreEqual(ad.GetCost(), 1350M);
        }
示例#2
0
文件: BOTest.cs 项目: ocs72/Sandbox
        public void Calc_1_ANameDecorator_LowerA_LastName()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

            ANameDecorator ad = new ANameDecorator(bb, "asdfbert afjkddd");

            Assert.AreEqual(ad.GetCost(), 900M);
        }
示例#3
0
文件: BOTest.cs 项目: ocs72/Sandbox
        public void Calc_1_ANameDecorator_NonA()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

            ANameDecorator ad = new ANameDecorator(bb, "tudfjf gdgfsd");

            Assert.AreEqual(ad.GetCost(), _baseCost);
        }
示例#4
0
文件: BOTest.cs 项目: ocs72/Sandbox
        public void Calc_1_ANameDecorator_CapitalA_LastName()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

            ANameDecorator ad = new ANameDecorator(bb, "bblbert Asdfasdf");

            Assert.AreEqual(ad.GetCost(), 900M);
        }