Beispiel #1
0
        public void SetUpStatPage_CorrectCalls()
        {
            A.CallTo(() => _centralLayoutBuilder.Build(A <IControlPropertiesStyle> .Ignored)).Returns(_createdTableLayoutWrapper);

            _mainFormProcessor.SetUpStatPage();

            A.CallTo(() => _tableLayoutWrapper.AccessControls.Add(A <IControl> .Ignored, 2, 1)).MustHaveHappened();
        }
Beispiel #2
0
        public void SetUpStatPage()
        {
            var centralLayoutStyle = new ControlPropertiesStyle
            {
                BackColor = Color.Aquamarine,
                Dock      = DockStyle.Fill,
                Margin    = new Padding(20)
            };

            _centralLayoutPanel = _centralLayoutBuilder.Build(centralLayoutStyle);
            _centralLayoutPanel = _verticalScrollStrategy.ExecuteOn(_centralLayoutPanel);

            _mainLayout.AccessControls.Add(_centralLayoutPanel, 2, 1);
            _centralLayoutPanel.AccessControls.Add(_dataEntryFormManager);
        }