Walkthrough: using Stylelabs.M.SDK.Fluent through the Web Client SDK
This section walks you through the following:
Create a project
Note
The following examples use the .NET Core CLI, you can use the equivalent functionality in your preferred IDE.
In order to create a new project execute the following commands:
Once the project is created a reference to Content Hub SDK Fluent libraries is required:
Create a base class
Note
These examples use xUnit as testing framework
Create a base class that takes care all the common functionality, for example, creating the SDK client.
Create entities
Create a new test class. The tests on this class will:
- Create a new
Entity Definitionand validate its members - Create a new
Entityand validate its members
Query entities
Create a new test class. The tests on this class will:
- Query
Entitiesby entity definition - Query
Entityby id - Query many
Entities
If you have suggestions for improving this article, let us know!