Interface IPhysicalFileTestBuilder
Used for testing Microsoft.AspNetCore.Mvc.PhysicalFileResult.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IPhysicalFileTestBuilder : IBaseTestBuilderWithActionResult<PhysicalFileResult>, IBaseTestBuilderWithInvokedAction, IBaseTestBuilderWithAction, IBaseTestBuilderWithComponent, IBaseTestBuilder
Methods
| Improve this Doc View SourceWithContentType(MediaTypeHeaderValue)
Tests whether Microsoft.AspNetCore.Mvc.PhysicalFileResult has the same content type as the provided one.
Declaration
IAndPhysicalFileTestBuilder WithContentType(MediaTypeHeaderValue contentType)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Net.Http.Headers.MediaTypeHeaderValue | contentType | Content type as MediaTypeHeaderValue. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder. |
WithContentType(String)
Tests whether Microsoft.AspNetCore.Mvc.PhysicalFileResult has the same content type as the provided one.
Declaration
IAndPhysicalFileTestBuilder WithContentType(string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentType | Content type as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder. |
WithFileDownloadName(String)
Tests whether Microsoft.AspNetCore.Mvc.PhysicalFileResult has the same file download name as the provided one.
Declaration
IAndPhysicalFileTestBuilder WithFileDownloadName(string fileDownloadName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileDownloadName | File download name as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder. |
WithPhysicalPath(String)
Tests whether Microsoft.AspNetCore.Mvc.PhysicalFileResult has the same physical file path as the provided one.
Declaration
IAndPhysicalFileTestBuilder WithPhysicalPath(string physicalPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | physicalPath | File physical path as string. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.File.IAndPhysicalFileTestBuilder. |