Esempio n. 1
0
 public void Init()
 {
     _notificationCenter = Substitute.For <INotificationCenter>();
     _calc             = Substitute.For <IPositionCalc>();
     _display          = Substitute.For <IDisplay>();
     _displayFormatter = new DisplayFormatter(_display, _calc, _notificationCenter, _testWidth, _testHeight);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void Init()
 {
     _positionCalc = new PositionCalc();
 }