public DrawStraightLineAdapter(
     IDrawStraightLine <ConsolePixelData> coreCommand,
     ILogger logger,
     ICanvasConfiguration <ConsolePixelData> canvasConfiguration)
     : base(coreCommand, logger)
 {
     _canvasConfiguration = canvasConfiguration;
 }
Exemplo n.º 2
0
 public DrawStraightLineTests()
 {
     _subject = new DrawStraightLine <PixelDataStub>(new Mock <ILogger>().Object);
     _canvasMock.SetupGet(c => c[It.IsAny <int>(), It.IsAny <int>()])
     .Returns(_pixelMock.Object);
 }
Exemplo n.º 3
0
 public DrawRectangle(IDrawStraightLine <TPixelData> drawStraightLine, ILogger logger)
 {
     _drawStraightLine = drawStraightLine;
     _logger           = logger;
 }