public async Task TestReadProperty(string property) { Assert.True(BControl.IsProperty(property)); var status = await _bcontrol.ReadPropertyAsync(property); Assert.True(status.IsGood); }
private void LoadChilds(IList<Clay.Logic.Modules.Control> controls, BControl bc) { foreach (Clay.Logic.Modules.Control item in controls) { BControl child = null; switch (item.Type) { case Enums.ControlType.Div: child = new Div { ID = item.ID, Float = item.Float, Clear = item.Clear, Width = item.Width, IsViewItem = item.IsViewItem, IsPanel = item.IsPanel }; break; case Enums.ControlType.Module: child = new ModuleControl { ID = item.ID, ModuleName = item.ModuleName }; break; } bc.Controls.Add(child); LoadChilds(item.Controls, child); } }
public void TestProperty(string property) { Assert.True(BControl.IsProperty(property)); Assert.NotNull(_bcontrol.GetPropertyValue(property)); }