Ejemplo n.º 1
0
        public void TestDecoratorPricaSum()
        {
            ICeramicsFactory ceramicsFactory = new FactoryCerluxPoland();
            Plate            plateIn         = new PlateDecorator(new SmallPLate(ceramicsFactory)) as PlateDecorator;

            // plateIn.Prepare();
            //plateIn.Firing();

            Assert.AreEqual(4.5, PlateDecorator.PriceOfPlates1);
        }
Ejemplo n.º 2
0
        public void TestDecoratorNumberOfELements()
        {
            ICeramicsFactory ceramicsFactory = new FactoryCerluxPoland();
            Plate            plateIn         = new PlateDecorator(new SmallPLate(
                                                                      ceramicsFactory)) as PlateDecorator;

            plateIn.Prepare();
            plateIn.Firing();

            Assert.AreEqual(1, PlateDecorator.NumberOfPlate);
        }