public static void CheckComponent(GetOrCreateComponentData createData, Api.ComponentInfo info) { Assert.Equal(createData.SystemName, info.SystemName); Assert.Equal(createData.DisplayName, info.DisplayName); Assert.Equal(createData.Version, info.Version); CheckExtentionProperties(createData.Properties, info.Properties); }
public static void CheckChildComponent( Guid parentComponentId, Api.ComponentInfo component, List <Api.ComponentInfo> components) { var child = components.SingleOrDefault(x => x.Id == component.Id); Assert.NotNull(child); CheckComponent(component, child); }
public static void CheckComponent(Api.ComponentInfo a, Api.ComponentInfo b) { Assert.Equal(a.DisplayName, b.DisplayName); Assert.Equal(a.SystemName, b.SystemName); CheckDateTimesEqualBySeconds(a.CreatedDate, b.CreatedDate); Assert.Equal(a.Id, b.Id); Assert.NotEqual(a.Id, Guid.Empty); Assert.Equal(a.ParentId, b.ParentId); Assert.Equal(a.Type.Id, b.Type.Id); Assert.Equal(a.Version, b.Version); CheckComponentType(a.Type, b.Type); CheckExtentionProperties(a.Properties, b.Properties); }