MY TESTED ASP.NET CORE MVC DOCS
  • Tutorial
  • Testing Guide
  • API Reference
  • Troubleshoot
  • About
  • API Reference
  • MyTested.AspNetCore.Mvc.Builders.Contracts.Uri
  • IUriTestBuilder
Show / Hide Table of Contents
  • Common Classes & Extensions
    • ActionAttributesTestBuilderViewFeaturesExtensions
    • AuthenticationScheme
    • BadRequestTestBuilderDataAnnotationsExtensions
    • BadRequestTestBuilderExtensions
    • BaseShouldReturnTestBuilderExtensions
    • BaseTestBuilderWithResponseModelExtensions
    • ComponentBuilderAuthenticationExtensions
    • ComponentBuilderCachingExtensions
    • ComponentBuilderDependencyInjectionExtensions
    • ComponentBuilderEntityFrameworkCoreExtensions
    • ComponentBuilderHttpExtensions
    • ComponentBuilderOptionsExtensions
    • ComponentBuilderRoutingExtensions
    • ComponentBuilderSessionExtensions
    • ComponentBuilderTempDataExtensions
    • ComponentShouldHaveTestBuilderCachingExtensions
    • ComponentShouldHaveTestBuilderEntityFrameworkCoreExtensions
    • ComponentShouldHaveTestBuilderHttpExtensions
    • ComponentShouldHaveTestBuilderModelStateExtensions
    • ComponentShouldHaveTestBuilderSessionExtensions
    • ComponentShouldHaveTestBuilderTempDataExtensions
    • ComponentShouldHaveTestBuilderViewBagExtensions
    • ComponentShouldHaveTestBuilderViewDataExtensions
    • ContentType
    • ControllerBuilderDataAnnotationsExtensions
    • CreatedTestBuilderExtensions
    • From
    • HttpHeader
    • HttpMethod
    • HttpRequestBuilderAuthenticationExtensions
    • HttpRequestBuilderViewFeaturesExtensions
    • HttpScheme
    • HttpStatusCode
    • LocalRedirectTestBuilderExtensions
    • ModelErrorDetailsTestBuilderViewFeaturesExtensions
    • ModelErrorTestBuilderViewFeaturesExtensions
    • MyApplication
    • MyController<TController>
    • MyMvc
    • MyRouting
    • MyViewComponent<TViewComponent>
    • RedirectTestBuilderExtensions
    • ResolvedRouteTestBuilderDataAnnotationsExtensions
    • ServiceCollectionAbstractionsExtensions
    • ServiceCollectionCachingExtensions
    • ServiceCollectionControllersExtensions
    • ServiceCollectionCoreExtensions
    • ServiceCollectionEntityFrameworkCoreExtensions
    • ServiceCollectionExtensions
    • ServiceCollectionHttpExtensions
    • ServiceCollectionOptionsExtensions
    • ServiceCollectionRoutingExtensions
    • ServiceCollectionSessionExtensions
    • ServiceCollectionTempDataExtensions
    • ServiceCollectionUniverseExtensions
    • ServiceCollectionViewComponentsExtensions
    • ServiceCollectionViewFeaturesExtensions
    • ShouldReturnTestBuilderExtensions
    • ShouldReturnTestBuilderJsonResultExtensions
    • ShouldReturnTestBuilderPartialViewResultExtensions
    • ShouldReturnTestBuilderViewComponentResultExtensions
    • ShouldReturnTestBuilderViewResultExtensions
    • ViewComponentShouldReturnTestBuilderExtensions
    • With
  • ActionResults.BadRequest
    • IBadRequestErrorMessageTestBuilder
    • IBadRequestTestBuilder
  • ActionResults.Challenge
    • IChallengeTestBuilder
  • ActionResults.Content
    • IContentTestBuilder
  • ActionResults.Created
    • ICreatedTestBuilder
  • ActionResults.File
    • IFileTestBuilder
    • IPhysicalFileTestBuilder
  • ActionResults.Forbid
    • IForbidTestBuilder
  • ActionResults.Json
    • IJsonSerializerSettingsTestBuilder
    • IJsonTestBuilder
  • ActionResults.LocalRedirect
    • ILocalRedirectTestBuilder
  • ActionResults.NotFound
    • INotFoundTestBuilder
  • ActionResults.Object
    • IObjectTestBuilder
  • ActionResults.Ok
    • IOkTestBuilder
  • ActionResults.Redirect
    • IRedirectTestBuilder
  • ActionResults.StatusCode
    • IStatusCodeTestBuilder
  • ActionResults.View
    • IViewComponentTestBuilder
    • IViewTestBuilder
  • Actions
    • IActionResultTestBuilder<TActionResult>
    • IShouldHaveTestBuilder<TActionResult>
    • IShouldReturnTestBuilder<TActionResult>
    • IVoidActionResultTestBuilder
  • Application
    • IApplicationConfigurationBuilder
  • Attributes
    • IActionAttributesTestBuilder
    • IBaseAttributesTestBuilder<TAttributesTestBuilder>
    • IControllerActionAttributesTestBuilder<TAttributesTestBuilder>
    • IControllerAttributesTestBuilder
    • IViewComponentAttributesTestBuilder
  • Authentication
    • IAuthenticationPropertiesTestBuilder
    • IClaimsIdentityBuilder
    • IClaimsPrincipalBuilder
  • Base
    • IBaseTestBuilder
    • IBaseTestBuilderWithAction
    • IBaseTestBuilderWithActionResult<TActionResult>
    • IBaseTestBuilderWithComponent
    • IBaseTestBuilderWithComponentBuilder<TBuilder>
    • IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>
    • IBaseTestBuilderWithController
    • IBaseTestBuilderWithInvokedAction
    • IBaseTestBuilderWithModel<TModel>
    • IBaseTestBuilderWithModelError
    • IBaseTestBuilderWithResponseModel
    • IBaseTestBuilderWithViewComponent
    • IBaseTestBuilderWithViewComponentInvocation
    • IBaseTestBuilderWithViewComponentResult<TInvocationResult>
  • CaughtExceptions
    • IAggregateExceptionTestBuilder
    • IBaseExceptionTestBuilder
    • IExceptionMessageTestBuilder
    • IExceptionTestBuilder
    • IShouldThrowTestBuilder
  • Controllers
    • IControllerBuilder<TController>
    • IControllerTestBuilder
  • Data
    • IDataProviderEntryDetailsTestBuilder<TValue>
    • IDataProviderEntryKeyTestBuilder
    • IDataProviderEntryTestBuilder
    • IDbContextBuilder
    • IDbContextTestBuilder
    • IMemoryCacheBuilder
    • IMemoryCacheEntryBuilder
    • IMemoryCacheEntryDetailsTestBuilder<TValue>
    • IMemoryCacheEntryKeyBuilder
    • IMemoryCacheEntryKeyTestBuilder
    • IMemoryCacheEntryTestBuilder
    • IMemoryCacheTestBuilder
    • ISessionBuilder
    • ISessionTestBuilder
    • ITempDataBuilder
    • ITempDataTestBuilder
    • IViewBagTestBuilder
    • IViewDataTestBuilder
  • Http
    • IHttpRequestBuilder
    • IHttpResponseTestBuilder
    • IResponseCookieTestBuilder
  • Invocations
    • IBaseShouldReturnTestBuilder
    • IBaseShouldReturnTestBuilder<TInvocationResult, TBuilder>
    • IBaseShouldReturnTestBuilder<TInvocationResult>
    • IViewComponentResultTestBuilder<TInvocationResult>
    • IViewComponentShouldHaveTestBuilder<TInvocationResult>
    • IViewComponentShouldReturnTestBuilder<TInvocationResult>
  • Models
    • IModelDetailsTestBuilder<TModel>
    • IModelErrorDetailsTestBuilder
    • IModelErrorDetailsTestBuilder<TModel>
    • IModelErrorTestBuilder
    • IModelErrorTestBuilder<TModel>
    • IModelStateTestBuilder
  • Options
    • IOptionsBuilder
  • Routing
    • IResolvedRouteTestBuilder
    • IRouteTestBuilder
    • IShouldMapTestBuilder
  • Services
    • IServicesBuilder
  • Uri
    • IUriBuilder
    • IUriTestBuilder
  • ViewComponentResults
    • IViewTestBuilder
  • ViewComponents
    • IViewComponentBuilder<TViewComponent>
    • IViewComponentTestBuilder

Interface IUriTestBuilder

Used for testing Uri location.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Uri
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IUriTestBuilder

Methods

| Improve this Doc View Source

Passing(Action<Uri>)

Tests whether the Uri passes the given assertions.

Declaration
IAndUriTestBuilder Passing(Action<Uri> assertions)
Parameters
Type Name Description
System.Action<System.Uri> assertions

Action containing all assertions on the Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

Passing(Func<Uri, Boolean>)

Tests whether the Uri passes the given predicate.

Declaration
IAndUriTestBuilder Passing(Func<Uri, bool> predicate)
Parameters
Type Name Description
System.Func<System.Uri, System.Boolean> predicate

Predicate testing the Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

WithAbsolutePath(String)

Tests whether the System.Uri.AbsolutePath has the same value as the provided one.

Declaration
IAndUriTestBuilder WithAbsolutePath(string absolutePath)
Parameters
Type Name Description
System.String absolutePath

Absolute path part of Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

WithFragment(String)

Tests whether the System.Uri.Fragment has the same value as the provided one.

Declaration
IAndUriTestBuilder WithFragment(string fragment)
Parameters
Type Name Description
System.String fragment

Document fragment part of Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

WithHost(String)

Tests whether the System.Uri.Host has the same value as the provided one.

Declaration
IAndUriTestBuilder WithHost(string host)
Parameters
Type Name Description
System.String host

Host part of Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

WithPort(Int32)

Tests whether the System.Uri.Port has the same value as the provided one.

Declaration
IAndUriTestBuilder WithPort(int port)
Parameters
Type Name Description
System.Int32 port

Port part of Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

WithQuery(String)

Tests whether the System.Uri.Query has the same value as the provided one.

Declaration
IAndUriTestBuilder WithQuery(string query)
Parameters
Type Name Description
System.String query

Query part of Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

| Improve this Doc View Source

WithScheme(String)

Tests whether the System.Uri.Scheme has the same value as the provided one.

Declaration
IAndUriTestBuilder WithScheme(string scheme)
Parameters
Type Name Description
System.String scheme

Scheme part of Uri.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriTestBuilder.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • Passing(Action<Uri>)
    • Passing(Func<Uri, Boolean>)
    • WithAbsolutePath(String)
    • WithFragment(String)
    • WithHost(String)
    • WithPort(Int32)
    • WithQuery(String)
    • WithScheme(String)
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX