Skip to content

Latest commit

 

History

History
220 lines (156 loc) · 5.01 KB

Atc.Rest.FluentAssertions.md

File metadata and controls

220 lines (156 loc) · 5.01 KB

Atc.Rest.FluentAssertions


AcceptedResultAssertions

public class AcceptedResultAssertions : ContentResultAssertionsBase<AcceptedResultAssertions>

AtcRestFluentAssertionsAssemblyTypeInitializer

public static class AtcRestFluentAssertionsAssemblyTypeInitializer

BadRequestResultAssertions

public class BadRequestResultAssertions : ErrorContentResultAssertions<BadRequestResultAssertions>

ConflictResultAssertions

public class ConflictResultAssertions : ErrorContentResultAssertions<ConflictResultAssertions>

ContentResultAssertions

public class ContentResultAssertions : ContentResultAssertionsBase<ContentResultAssertions>

Methods

WithStatusCode

AndConstraint<ContentResultAssertions> WithStatusCode(HttpStatusCode expectedStatusCode, string because = , object[] becauseArgs)

WithStatusCode

AndConstraint<ContentResultAssertions> WithStatusCode(int expectedStatusCode, string because = , object[] becauseArgs)

ContentResultAssertionsBase<TAssertions>

public abstract class ContentResultAssertionsBase&lt;TAssertions&gt; : ReferenceTypeAssertions<ContentResult, ContentResultAssertionsBase<TAssertions>>

Methods

WithContent

AndWhichConstraint<TAssertions, ContentResult> WithContent(T expectedContent, string because = , object[] becauseArgs)

WithContentOfType

AndWhichConstraint<ObjectAssertions, T> WithContentOfType(string because = , object[] becauseArgs)

CreatedResultAssertions

public class CreatedResultAssertions : ContentResultAssertionsBase<CreatedResultAssertions>

ErrorContentResultAssertions<TAssertions>

public abstract class ErrorContentResultAssertions&lt;TAssertions&gt; : ContentResultAssertionsBase<TAssertions>

Methods

WithErrorMessage

AndWhichConstraint<TAssertions, ContentResult> WithErrorMessage(string expectedErrorMessage, string because = , object[] becauseArgs)

ForbiddenResultAssertions

public class ForbiddenResultAssertions : ErrorContentResultAssertions<ForbiddenResultAssertions>

NoContentResultAssertions

public class NoContentResultAssertions : ContentResultAssertionsBase<NoContentResultAssertions>

NotFoundResultAssertions

public class NotFoundResultAssertions : ErrorContentResultAssertions<NotFoundResultAssertions>

OkResultAssertions

public class OkResultAssertions : ReferenceTypeAssertions<OkObjectResult, OkResultAssertions>

Methods

WithContent

AndWhichConstraint<OkResultAssertions, OkObjectResult> WithContent(T expectedContent, string because = , object[] becauseArgs)

WithContentOfType

AndWhichConstraint<ObjectAssertions, T> WithContentOfType(string because = , object[] becauseArgs)

ResultAssertions

public class ResultAssertions : ReferenceTypeAssertions<ActionResult, ResultAssertions>

Methods

BeAcceptedResult

AcceptedResultAssertions BeAcceptedResult(string because = , object[] becauseArgs)

BeBadRequestResult

BadRequestResultAssertions BeBadRequestResult(string because = , object[] becauseArgs)

BeConflictResult

ConflictResultAssertions BeConflictResult(string because = , object[] becauseArgs)

BeContentResult

ContentResultAssertions BeContentResult(string because = , object[] becauseArgs)

BeCreatedResult

CreatedResultAssertions BeCreatedResult(string because = , object[] becauseArgs)

BeForbiddenResult

ForbiddenResultAssertions BeForbiddenResult(string because = , object[] becauseArgs)

BeNoContentResult

NoContentResultAssertions BeNoContentResult(string because = , object[] becauseArgs)

BeNotFoundResult

NotFoundResultAssertions BeNotFoundResult(string because = , object[] becauseArgs)

BeOkResult

OkResultAssertions BeOkResult(string because = , object[] becauseArgs)

ResultBaseExtensions

Extensions for FluentAssertions that make testing Atc Rest handlers easier.

public static class ResultBaseExtensions

Static Methods

Should

ResultAssertions Should(this ResultBase subject)

Summary: Returns an Atc.Rest.FluentAssertions.ResultAssertions object that can be used to assert the current subject.

Parameters:
     subject  -  The subject to assert against.

Returns: A Atc.Rest.FluentAssertions.ResultAssertions.


Generated by MarkdownCodeDoc version 1.2