예제 #1
0
        public void Build_NoStyle_CorrectCallsMade()
        {
            var tableLayout = A.Fake <ITableLayoutWrapper>();

            A.CallTo(() => _tableLayoutWrapperFactory.Create()).Returns(tableLayout);

            _centralLayoutBuilder.Build();

            A.CallTo(() => _propertyApplier.Apply(A <IControlProperties> .Ignored, A <IControlPropertiesStyle> .Ignored)).MustNotHaveHappened();
            A.CallTo(() => _layoutDecoratorApplier.Apply(tableLayout, _tableLayoutDecorators)).MustHaveHappened();
        }
예제 #2
0
        public ITableLayoutWrapper Build(IControlPropertiesStyle tablePropertiesStyle = null)
        {
            var middleLayoutPanel = _tableLayoutDecoratorApplier.Apply(_tableLayoutWrapperFactory.Create(), _tableLayoutDecorators);

            if (tablePropertiesStyle != null)
            {
                _propertyApplier.Apply(middleLayoutPanel, tablePropertiesStyle);
            }
            return(middleLayoutPanel);
        }
예제 #3
0
 public IDataEntryForm Create()
 {
     return(new DataEntryForm(_tableLayoutWrapperFactory.Create()));
 }
예제 #4
0
        public IDataEntryForm Build(List <List <ITrueControl> > dataListofList)
        {
            var dataEntryForm = new DataEntryForm(_tableLayoutWrapperFactory.Create());

            return(Build(dataEntryForm, dataListofList));
        }