3 instantiations of DeclaredApiResponseMetadata
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
DeclaredApiResponseMetadata.cs (3)
12new DeclaredApiResponseMetadata(statusCode: 200, attributeData: null, attributeSource: null, @implicit: true, @default: false);
16return new DeclaredApiResponseMetadata(statusCode, attributeData, attributeSource, @implicit: false, @default: false);
21return new DeclaredApiResponseMetadata(statusCode: 0, attributeData, attributeSource, @implicit: false, @default: true);
34 references to DeclaredApiResponseMetadata
Microsoft.AspNetCore.Mvc.Api.Analyzers (25)
Mvc.Api.Analyzers.Test (9)
DeclaredApiResponseMetadataTest.cs (9)
20var declaredMetadata = DeclaredApiResponseMetadata.ImplicitResponse;
34var declaredMetadata = DeclaredApiResponseMetadata.ImplicitResponse;
48var declaredMetadata = DeclaredApiResponseMetadata.ForProducesResponseType(200, AttributeData, Mock.Of<IMethodSymbol>());
66var declaredMetadata = DeclaredApiResponseMetadata.ForProducesResponseType(201, AttributeData, Mock.Of<IMethodSymbol>());
84var declaredMetadata = DeclaredApiResponseMetadata.ForProducesResponseType(201, AttributeData, Mock.Of<IMethodSymbol>());
98var declaredMetadata = DeclaredApiResponseMetadata.ForProducesResponseType(302, AttributeData, Mock.Of<IMethodSymbol>());
115var declaredMetadata = DeclaredApiResponseMetadata.ForProducesDefaultResponse(AttributeData, Mock.Of<IMethodSymbol>());
129var declaredMetadata = DeclaredApiResponseMetadata.ForProducesDefaultResponse(AttributeData, Mock.Of<IMethodSymbol>());
143var declaredMetadata = DeclaredApiResponseMetadata.ForProducesDefaultResponse(AttributeData, Mock.Of<IMethodSymbol>());