WordPressModelFactory Class

Definition

Model factory for creating instances of WordPress models. Use these factory methods to construct model instances in tests and scenarios where output-only properties (with init-only setters) need to be populated.

public static class WordPressModelFactory
type WordPressModelFactory = class
Public Class WordPressModelFactory
Inheritance
WordPressModelFactory

Methods

Name Description
CreatePostModel(String, String, Nullable<Status>, String)

Creates a new instance of CreatePostModel(String, String, Nullable<Status>, String).

ListPostsResponse(List<PostResponse>)

Creates a new instance of ListPostsResponse(List<PostResponse>).

PostModel(Nullable<Int32>, Nullable<Int32>, String, String, String, String, String, String, String, String, String, Nullable<Boolean>, String, Nullable<JsonElement>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, Nullable<JsonElement>, String, Nullable<Boolean>)

Creates a new instance of PostModel(Nullable<Int32>, Nullable<Int32>, String, String, String, String, String, String, String, String, String, Nullable<Boolean>, String, Nullable<JsonElement>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, Nullable<JsonElement>, String, Nullable<Boolean>).

PostResponse(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, String, String, String, String, String, Nullable<Int32>)

Creates a new instance of PostResponse(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, String, String, String, String, String, Nullable<Int32>).

Site(Nullable<Int32>, String, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)

Creates a new instance of Site(Nullable<Int32>, String, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>).

SiteList(List<Site>)

Creates a new instance of SiteList(List<Site>).

SiteStatsModel(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Creates a new instance of SiteStatsModel(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>).

Applies to