public static void CheckComponentType(IComponentTypeControl a, IComponentTypeControl b) { Assert.False(a.IsFake()); Assert.False(b.IsFake()); Assert.Equal(a.SystemName, b.SystemName); CheckComponentType(a.Info, b.Info); }
public ComponentControlOffline( Client client, IComponentTypeControl type, string systemName, string version) : base(client) { SystemNameInternal = systemName; VersionInternal = version; Type = type; }
public IComponentControl GetOrCreateChildComponentControl( IComponentTypeControl type, string systemName, string version) { var createData = new GetOrCreateComponentData(systemName, type) { Version = version }; return(GetOrCreateChildComponentControl(createData)); }
public GetOrCreateComponentData(string systemName, IComponentTypeControl componentTypeControl) { if (systemName == null) { throw new ArgumentNullException("systemName"); } if (componentTypeControl == null) { throw new ArgumentNullException("componentTypeControl"); } SystemName = systemName; ComponentTypeControl = componentTypeControl; Properties = new ExtentionPropertyCollection(); }
public IComponentControl GetOrCreateChildComponentControl( IComponentTypeControl type, string systemName) { if (systemName == null) { throw new ArgumentNullException("systemName"); } if (type == null) { throw new ArgumentNullException("type"); } return(GetOrCreateChildComponentControl(new GetOrCreateComponentData(systemName, type))); }
public static void CheckComponent( IComponentControl parent, IComponentTypeControl typeControl, GetOrCreateComponentData createData, IComponentControl component) { Assert.False(component.IsFake()); Assert.NotNull(component.Info); Assert.Equal(createData.DisplayName, component.Info.DisplayName); Assert.Equal(createData.SystemName, component.SystemName); Assert.Equal(createData.SystemName, component.Info.SystemName); Assert.True(component.Info.CreatedDate > DateTime.Now.AddDays(-1)); Assert.True(component.Info.Id != Guid.Empty); Assert.NotNull(component.Info.ParentId); Assert.NotEqual(component.Info.ParentId, Guid.Empty); Assert.Equal(parent.Info.Id, component.Info.ParentId); Assert.Equal(typeControl.Info.Id, component.Info.Type.Id); Assert.Equal(typeControl.Info.Id, component.Type.Info.Id); Assert.Equal(createData.Version, component.Version); Assert.Equal(createData.Version, component.Info.Version); CheckExtentionProperties(createData.Properties, component.Info.Properties); }
public IComponentControl GetOrCreateChildComponentControl(IComponentTypeControl type, string systemName, string version) { return(new FakeComponentControl()); }
protected ComponentControlWrapper( Client client, IComponentTypeControl type) : base(client) { Type = type; }