protected TestsForFoldingDrawer() { _emptyCanvasFactory = A.Fake <IEmptyCanvasFactory>(); _panelRectangleFactory = A.Fake <IPanelRectangleFactory>(); _rectangleDrawer = A.Fake <IRectangleDrawer>(); _sut = new FoldingDrawer(_emptyCanvasFactory, _panelRectangleFactory, _rectangleDrawer); }
public FoldingDrawer(IEmptyCanvasFactory emptyCanvasFactory, IPanelRectangleFactory panelRectangleFactory, IRectangleDrawer rectangleDrawer) { if (emptyCanvasFactory == null) { throw new ArgumentNullException(nameof(emptyCanvasFactory)); } if (panelRectangleFactory == null) { throw new ArgumentNullException(nameof(panelRectangleFactory)); } if (rectangleDrawer == null) { throw new ArgumentNullException(nameof(rectangleDrawer)); } _emptyCanvasFactory = emptyCanvasFactory; _panelRectangleFactory = panelRectangleFactory; _rectangleDrawer = rectangleDrawer; }