Class ComponentShouldHaveTestBuilderEntityFrameworkCoreExtensions
Contains Microsoft.EntityFrameworkCore.DbContext extension methods for IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>.
Inheritance
System.Object
ComponentShouldHaveTestBuilderEntityFrameworkCoreExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.EntityFrameworkCore.dll
Syntax
public static class ComponentShouldHaveTestBuilderEntityFrameworkCoreExtensions
Methods
| Improve this Doc View SourceDbContext<TBuilder>(IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>, Action<IDbContextTestBuilder>)
Tests whether the action saves entities in the Microsoft.EntityFrameworkCore.DbContext.
Declaration
public static TBuilder DbContext<TBuilder>(this IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder> builder, Action<IDbContextTestBuilder> dbContextTestBuilder)where TBuilder : IBaseTestBuilder
Parameters
Type | Name | Description |
---|---|---|
IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder> type. |
System.Action<IDbContextTestBuilder> | dbContextTestBuilder | Action containing all assertions on the Microsoft.EntityFrameworkCore.DbContext entities. |
Returns
Type | Description |
---|---|
TBuilder | The same component should have test builder. |
Type Parameters
Name | Description |
---|---|
TBuilder | Class representing ASP.NET Core MVC test builder. |