Exemplo n.º 1
0
        public static GraphicCodes FactoryCreate(string barcode)
        {
            GraphicCodes gc = new GraphicCodes();

            gc.BarcodeEAN13 = barcode;

            return(gc);
        }
Exemplo n.º 2
0
        public static Box FactoryCreate(BoxType boxType, string barcode)
        {
            Box box = new Box();

            box.BoxTypeID    = boxType.Id;
            box.BoxType      = boxType;
            box.Description  = $"Desc.{barcode} - {boxType.Name}";
            box.FlowStep     = FlowStep.FactoryCreate();
            box.GraphicCodes = GraphicCodes.FactoryCreate(barcode);

            box.ComponentValidator.Validate(box, new BoxValidator());
            return(box);
        }