Beispiel #1
0
 public ProxyFigureCalculator(ProxyFigureStorage storage, ProxyFigureValidator validator)
 {
     _storage   = storage;
     _validator = validator;
 }
 public static void Initialize()
 {
     ProxyFigureStorage.AddFigureProcessors(new CircleValidator(), new CircleCalculator(), "circle");
     ProxyFigureStorage.AddFigureProcessors(new TriangleValidator(), new TriangleCalculator(), "triangle");
 }
 public ProxyFigureDescriptionProvider(ProxyFigureStorage storage)
 {
     _storage = storage;
 }
 public ProxyFigureValidator(ProxyFigureStorage storage)
 {
     _storage = storage;
 }