C# Class StackOverflowNS.Api.Services.ApiPostServerRequestModelValidator

Inheritance: AbstractValidator, IApiPostServerRequestModelValidator
Mostrar archivo Open project: codenesium/samples

Public Methods

Method Description
AcceptedAnswerIdRules ( ) : void
AnswerCountRules ( ) : void
ApiPostServerRequestModelValidator ( IPostRepository postRepository ) : Codenesium.DataConversionExtensions
BodyRules ( ) : void
ClosedDateRules ( ) : void
CommentCountRules ( ) : void
CommunityOwnedDateRules ( ) : void
CreationDateRules ( ) : void
FavoriteCountRules ( ) : void
LastActivityDateRules ( ) : void
LastEditDateRules ( ) : void
LastEditorDisplayNameRules ( ) : void
LastEditorUserIdRules ( ) : void
OwnerUserIdRules ( ) : void
ParentIdRules ( ) : void
PostTypeIdRules ( ) : void
ScoreRules ( ) : void
TagRules ( ) : void
TitleRules ( ) : void
ValidateAsync ( model, int id ) : Task
ValidateCreateAsync ( model ) : Task
ValidateDeleteAsync ( int id ) : Task
ValidateUpdateAsync ( int id, model ) : Task
ViewCountRules ( ) : void

Protected Methods

Method Description
BeValidPostByParentId ( int? id, CancellationToken cancellationToken ) : Task
BeValidPostTypeByPostTypeId ( int id, CancellationToken cancellationToken ) : Task
BeValidUserByLastEditorUserId ( int? id, CancellationToken cancellationToken ) : Task
BeValidUserByOwnerUserId ( int? id, CancellationToken cancellationToken ) : Task

Method Details

AcceptedAnswerIdRules() public method

public AcceptedAnswerIdRules ( ) : void
return void

AnswerCountRules() public method

public AnswerCountRules ( ) : void
return void

ApiPostServerRequestModelValidator() public method

public ApiPostServerRequestModelValidator ( IPostRepository postRepository ) : Codenesium.DataConversionExtensions
postRepository IPostRepository
return Codenesium.DataConversionExtensions

BeValidPostByParentId() protected method

protected BeValidPostByParentId ( int? id, CancellationToken cancellationToken ) : Task
id int?
cancellationToken CancellationToken
return Task

BeValidPostTypeByPostTypeId() protected method

protected BeValidPostTypeByPostTypeId ( int id, CancellationToken cancellationToken ) : Task
id int
cancellationToken CancellationToken
return Task

BeValidUserByLastEditorUserId() protected method

protected BeValidUserByLastEditorUserId ( int? id, CancellationToken cancellationToken ) : Task
id int?
cancellationToken CancellationToken
return Task

BeValidUserByOwnerUserId() protected method

protected BeValidUserByOwnerUserId ( int? id, CancellationToken cancellationToken ) : Task
id int?
cancellationToken CancellationToken
return Task

BodyRules() public method

public BodyRules ( ) : void
return void

ClosedDateRules() public method

public ClosedDateRules ( ) : void
return void

CommentCountRules() public method

public CommentCountRules ( ) : void
return void

CommunityOwnedDateRules() public method

public CommunityOwnedDateRules ( ) : void
return void

CreationDateRules() public method

public CreationDateRules ( ) : void
return void

FavoriteCountRules() public method

public FavoriteCountRules ( ) : void
return void

LastActivityDateRules() public method

public LastActivityDateRules ( ) : void
return void

LastEditDateRules() public method

public LastEditDateRules ( ) : void
return void

LastEditorDisplayNameRules() public method

public LastEditorDisplayNameRules ( ) : void
return void

LastEditorUserIdRules() public method

public LastEditorUserIdRules ( ) : void
return void

OwnerUserIdRules() public method

public OwnerUserIdRules ( ) : void
return void

ParentIdRules() public method

public ParentIdRules ( ) : void
return void

PostTypeIdRules() public method

public PostTypeIdRules ( ) : void
return void

ScoreRules() public method

public ScoreRules ( ) : void
return void

TagRules() public method

public TagRules ( ) : void
return void

TitleRules() public method

public TitleRules ( ) : void
return void

ValidateAsync() public method

public ValidateAsync ( model, int id ) : Task
id int
return Task

ValidateCreateAsync() public method

public ValidateCreateAsync ( model ) : Task
return Task

ValidateDeleteAsync() public method

public ValidateDeleteAsync ( int id ) : Task
id int
return Task

ValidateUpdateAsync() public method

public ValidateUpdateAsync ( int id, model ) : Task
id int
return Task

ViewCountRules() public method

public ViewCountRules ( ) : void
return void