You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like a lot of code for empty content which you mostly need, instead I propose we use some helper methods like CreateBasicContentType, so it could look something like this:
@emma-hq It's not done yet, this is basically we want methods in the DocumentTypeBuilder & ContentBuilder😄
So we would be able to call const rootDocType = new DocumentTypeBuilder().CreateBasicContentType("MyBasicContentType"); To maybe create a content type with a text-string property named Title & a text area property named Body.
This way contributors wouldn't even need to know how the builder pattern worked, to create a default document type, hope that makes sense 😁
In many cases, all you need for your test is a completely empty content, with some name.
Currently this is a bit of pain to do:
Create doctype:
Then create content:
This seems like a lot of code for empty content which you mostly need, instead I propose we use some helper methods like
CreateBasicContentType
, so it could look something like this:The text was updated successfully, but these errors were encountered: