Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void Calc_1_ANameDecorator_LowerA_LastName()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

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

            Assert.AreEqual(ad.GetCost(), 900M);
        }
Ejemplo n.º 3
0
        public void Calc_1_ANameDecorator_NonA()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

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

            Assert.AreEqual(ad.GetCost(), _baseCost);
        }
Ejemplo n.º 4
0
        public void Calc_1_ANameDecorator_CapitalA_LastName()
        {
            BenefitBase bb = new BenefitBase(_benefitRepository);

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

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