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 SourcePassing(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |