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

Class ComponentBuilderTempDataExtensions

Contains Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary extension methods for IBaseTestBuilderWithComponentBuilder<TBuilder>.

Inheritance
System.Object
ComponentBuilderTempDataExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.TempData.dll
Syntax
public static class ComponentBuilderTempDataExtensions

Methods

| Improve this Doc View Source

WithTempData<TBuilder>(IBaseTestBuilderWithComponentBuilder<TBuilder>, Action<ITempDataBuilder>)

Sets initial values to the Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary on the tested component.

Declaration
public static TBuilder WithTempData<TBuilder>(this IBaseTestBuilderWithComponentBuilder<TBuilder> builder, Action<ITempDataBuilder> tempDataBuilder)where TBuilder : IBaseTestBuilder
Parameters
Type Name Description
IBaseTestBuilderWithComponentBuilder<TBuilder> builder

Instance of IBaseTestBuilderWithComponentBuilder<TBuilder> type.

System.Action<ITempDataBuilder> tempDataBuilder

Action setting the Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary values by using ITempDataBuilder.

Returns
Type Description
TBuilder

The same component builder.

Type Parameters
Name Description
TBuilder Class representing ASP.NET Core MVC test builder.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX