public static GraphicCodes FactoryCreate(string barcode) { GraphicCodes gc = new GraphicCodes(); gc.BarcodeEAN13 = barcode; return(gc); }
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); }