public void Init() { _notificationCenter = Substitute.For <INotificationCenter>(); _calc = Substitute.For <IPositionCalc>(); _display = Substitute.For <IDisplay>(); _displayFormatter = new DisplayFormatter(_display, _calc, _notificationCenter, _testWidth, _testHeight); }
public DisplayFormatter(IDisplay display, IPositionCalc calc, INotificationCenter notificationCenter, int width = 150, int height = 50) { _calc = calc; _notificationCenter = notificationCenter; Width = width; Height = height; _display = display; _display.BuildFrame(width, height); }
public void Init() { _positionCalc = new PositionCalc(); }