MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

Interface IAuthenticationPropertiesTestBuilder

Used for testing AuthenticationProperties.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IAuthenticationPropertiesTestBuilder

Methods

| Improve this Doc View Source

WithAllowRefresh(Nullable<Boolean>)

Tests whether AuthenticationProperties has the same Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.AllowRefresh value as the provided one.

Declaration
IAndAuthenticationPropertiesTestBuilder WithAllowRefresh(bool ? allowRefresh)
Parameters
Type Name Description
System.Nullable<System.Boolean> allowRefresh

Expected allow refresh value.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithExpires(Nullable<DateTimeOffset>)

Tests whether AuthenticationProperties has the same Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.ExpiresUtc value as the provided one.

Declaration
IAndAuthenticationPropertiesTestBuilder WithExpires(DateTimeOffset? expiresUtc)
Parameters
Type Name Description
System.Nullable<System.DateTimeOffset> expiresUtc

Expected expires value.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithIsPersistent(Boolean)

Tests whether AuthenticationProperties has the same Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.IsPersistent value as the provided one.

Declaration
IAndAuthenticationPropertiesTestBuilder WithIsPersistent(bool isPersistent)
Parameters
Type Name Description
System.Boolean isPersistent

Expected is persistent value.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithIssued(Nullable<DateTimeOffset>)

Tests whether AuthenticationProperties has the same Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.IssuedUtc value as the provided one.

Declaration
IAndAuthenticationPropertiesTestBuilder WithIssued(DateTimeOffset? issuedUtc)
Parameters
Type Name Description
System.Nullable<System.DateTimeOffset> issuedUtc

Expected issued value.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithItem(String)

Tests whether AuthenticationProperties contains the provided item key in its Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.Items collection.

Declaration
IAndAuthenticationPropertiesTestBuilder WithItem(string itemKey)
Parameters
Type Name Description
System.String itemKey

Expected item key.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithItem(String, String)

Tests whether AuthenticationProperties contains the provided item key and value in its Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.Items collection.

Declaration
IAndAuthenticationPropertiesTestBuilder WithItem(string itemKey, string itemValue)
Parameters
Type Name Description
System.String itemKey

Expected item key.

System.String itemValue

Expected item value.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithItems(IDictionary<String, String>)

Tests whether AuthenticationProperties contains the provided items in its Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.Items collection.

Declaration
IAndAuthenticationPropertiesTestBuilder WithItems(IDictionary<string, string> items)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> items

Expected items as dictionary.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithItems(Object)

Tests whether AuthenticationProperties contains the provided items in its Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.Items collection.

Declaration
IAndAuthenticationPropertiesTestBuilder WithItems(object items)
Parameters
Type Name Description
System.Object items

Expected items as anonymous object.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

| Improve this Doc View Source

WithRedirectUri(String)

Tests whether AuthenticationProperties has the same Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties.RedirectUri as the provided one.

Declaration
IAndAuthenticationPropertiesTestBuilder WithRedirectUri(string redirectUri)
Parameters
Type Name Description
System.String redirectUri

Expected redirect URI.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication.IAndAuthenticationPropertiesTestBuilder.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX