public void Setup() { factories = new Dictionary <string, ShapeFactory>(); factories.Add("Square", new SquareFactory()); factories.Add("Circle", new CircleFactory()); factories.Add("Triangle", new TriangleFactory()); shapeList = ConcreteShapeFactory.GenerateShapeList(factories); shapeCostDict = new Dictionary <string, decimal>(); }
public static Shape load(string fileName, Type expectedType) { ConcreteShapeFactory concreteShapeFactory = new ConcreteShapeFactory(); return(concreteShapeFactory.getShape(fileName, expectedType)); }