Class MyApplication
Provides methods to set up the ASP.NET Core MVC test application.
Inheritance
System.Object
MyTested.AspNetCore.Mvc.Builders.Application.ApplicationConfigurationBuilder
MyApplication
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public class MyApplication : ApplicationConfigurationBuilder, IApplicationConfigurationBuilder
Constructors
| Improve this Doc View SourceMyApplication()
Initializes a new instance of the MyApplication class.
Declaration
public MyApplication()
MyApplication(Type)
Initializes a new instance of the MyApplication class.
Declaration
public MyApplication(Type startupType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | startupType | Startup class to bootstrap the test application from. |
Methods
| Improve this Doc View SourceStartsFrom<TStartup>()
Specifies the Startup class from which the test application is bootstrapped.
Declaration
public static IApplicationConfigurationBuilder StartsFrom<TStartup>()where TStartup : class
Returns
| Type | Description |
|---|---|
| IApplicationConfigurationBuilder | Builder of IApplicationConfigurationBuilder type. |
Type Parameters
| Name | Description |
|---|---|
| TStartup | Startup class to bootstrap the test application from. |