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(); }
public ITableLayoutWrapper Build(IControlPropertiesStyle tablePropertiesStyle = null) { var middleLayoutPanel = _tableLayoutDecoratorApplier.Apply(_tableLayoutWrapperFactory.Create(), _tableLayoutDecorators); if (tablePropertiesStyle != null) { _propertyApplier.Apply(middleLayoutPanel, tablePropertiesStyle); } return(middleLayoutPanel); }
public IDataEntryForm Create() { return(new DataEntryForm(_tableLayoutWrapperFactory.Create())); }
public IDataEntryForm Build(List <List <ITrueControl> > dataListofList) { var dataEntryForm = new DataEntryForm(_tableLayoutWrapperFactory.Create()); return(Build(dataEntryForm, dataListofList)); }