public static TypedEntity CreateTypedEntity(EntitySchema schema, TypedAttribute[] attribs, bool assignId = false) { var entity = new TypedEntity { EntitySchema = schema }; entity.Attributes.Reset(attribs); if (assignId) entity.Id = new HiveId(Guid.NewGuid()); return entity; }