/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Integration.Test/ModelBinding/ |
H A D | DefaultActionValueBinderTest.cs | 30 ContextUtil.CreateControllerContext(), in BindValuesAsync_Uses_DefaultValues() 52 ContextUtil.CreateControllerContext(), in BindValuesAsync_WithObjectContentInRequest_Works() 552 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_Json() 578 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_Json_With_Validation_Error() 600 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_FormUrlEncoded() 626 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_FormUrlEncoded_With_Validation_Error() 650 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_Xml() 686 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_Xml_Structural() 714 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_Type_Xml_With_Validation_Error() 740 ContextUtil.CreateControllerContext(request), in BindValuesAsync_Body_To_Complex_And_Uri_To_Simple() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/Filters/ |
H A D | ActionFilterAttributeTest.cs | 47 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_InvokesOnActionExecutingBeforeContinuation() 72 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_OnActionExecutingMethodGetsPassedControllerContext() 91 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfOnActionExecutingThrowsException_ReturnsFaultedTask() 115 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfOnActionExecutingSetsResult_ShortCircuits() 141 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfContinuationTaskWasCanceled_ReturnsCanceledTask() 157 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfContinuationSucceeded_InvokesOnActionExecutedAsSuccess() 178 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfContinuationFaulted_InvokesOnActionExecutedAsError() 200 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfOnActionExecutedDoesNotHandleExceptionFromContinuation_ReturnsFaultedTask() 222 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfOnActionExecutedDoesHandleExceptionFromContinuation_ReturnsSuccessfulTask() 244 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteActionFilterAsync_IfOnActionExecutedThrowsException_ReturnsFaultedTask() [all …]
|
H A D | AuthorizationFilterAttributeTest.cs | 39 …filter.ExecuteAuthorizationFilterAsync(actionContext: ContextUtil.CreateActionContext(), cancellat… in ExecuteAuthorizationFilterAsync_IfContinuationParameterIsNull_ThrowsException() 47 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_InvokesOnActionExecutingBeforeContinuation() 72 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_IfOnActionExecutingSetsResult_ShortCircuits() 99 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_IfOnActionExecutingThrowsException_ReturnsFaultedTask() 123 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_OnActionExecutingMethodGetsPassedControllerContext() 141 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_IfContinuationTaskWasCanceled_ReturnsCanceledTask() 157 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_IfContinuationSucceeded_ReturnsSuccessTask() 174 HttpActionContext context = ContextUtil.CreateActionContext(); in ExecuteAuthorizationFilterAsync_IfContinuationFaulted_ReturnsFaultedTask()
|
H A D | HttpActionExecutedContextTest.cs | 26 HttpActionContext context = ContextUtil.CreateActionContext(); in Parameter_Constructor() 40 HttpActionContext context = ContextUtil.CreateActionContext(); in Constructor_AllowsNullExceptionParameter() 64 roundTripTestValue: ContextUtil.CreateActionContext()); in ActionContext_Property() 82 …instance: new HttpActionExecutedContext(actionContext: ContextUtil.CreateActionContext(), exceptio… in Result_Property()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/ModelBinding/Binders/ |
H A D | MutableObjectModelBinderTest.cs | 29 HttpActionContext context = ContextUtil.CreateActionContext(); in BindModel() 254 HttpActionContext context = ContextUtil.CreateActionContext(); in NullCheckFailedHandler_ModelStateAlreadyInvalid_DoesNothing() 273 HttpActionContext context = ContextUtil.CreateActionContext(); in NullCheckFailedHandler_ModelStateValid_AddsErrorString() 291 HttpActionContext context = ContextUtil.CreateActionContext(); in NullCheckFailedHandler_ModelStateValid_CallbackReturnsNull_DoesNothing() 325 HttpActionContext context = ContextUtil.CreateActionContext(); in ProcessDto_BindRequiredFieldMissing_RaisesModelError() 355 HttpActionContext context = ContextUtil.CreateActionContext(); in ProcessDto_Success() 385 HttpActionContext context = ContextUtil.CreateActionContext(); in SetProperty_PropertyHasDefaultValue_SetsDefaultValue() 435 HttpActionContext context = ContextUtil.CreateActionContext(); in SetProperty_PropertyIsSettable_CallsSetter() 488 HttpActionContext context = ContextUtil.CreateActionContext(); in SetProperty_SettingNonNullableValueTypeToNull_RequiredValidatorNotPresent_RegistersValidationCallback() 514 HttpActionContext context = ContextUtil.CreateActionContext(); in SetProperty_SettingNonNullableValueTypeToNull_RequiredValidatorPresent_AddsModelError() [all …]
|
H A D | CollectionModelBinderTest.cs | 34 HttpActionContext context = ContextUtil.CreateActionContext(); in BindComplexCollectionFromIndexes_FiniteIndexes() 71 HttpActionContext context = ContextUtil.CreateActionContext(); in BindComplexCollectionFromIndexes_InfiniteIndexes() 109 HttpActionContext context = ContextUtil.CreateActionContext(); in BindModel_ComplexCollection() 144 HttpActionContext context = ContextUtil.CreateActionContext(); in BindModel_SimpleCollection() 197 HttpActionContext context = ContextUtil.CreateActionContext(); in BindSimpleCollection_SubBinderDoesNotExist() 220 HttpActionContext context = ContextUtil.CreateActionContext(); in BindSimpleCollection_SubBindingSucceeds()
|
H A D | KeyValuePairModelBinderUtilTest.cs | 26 HttpActionContext context = ContextUtil.CreateActionContext(); in TryBindStrongModel_BinderExists_BinderReturnsCorrectlyTypedObject_ReturnsTrue() 61 HttpActionContext context = ContextUtil.CreateActionContext(); in TryBindStrongModel_BinderExists_BinderReturnsIncorrectlyTypedObject_ReturnsTrue() 87 HttpActionContext context = ContextUtil.CreateActionContext(); in TryBindStrongModel_NoBinder_ReturnsFalse()
|
H A D | KeyValuePairModelBinderTest.cs | 26 HttpActionContext context = ContextUtil.CreateActionContext(); in BindModel_MissingKey_ReturnsFalse() 49 HttpActionContext context = ContextUtil.CreateActionContext(); in BindModel_MissingValue_ReturnsTrue() 82 HttpActionContext context = ContextUtil.CreateActionContext(); in BindModel_SubBindingSucceeds()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/Validation/ |
H A D | ModelValidationNodeTest.cs | 99 parentNode1.Validate(ContextUtil.CreateActionContext()); in CombineWith() 138 parentNode1.Validate(ContextUtil.CreateActionContext()); in CombineWith_OtherNodeIsSuppressed_DoesNothing() 165 node.Validate(ContextUtil.CreateActionContext()); in Validate_Ordering() 185 HttpActionContext context = ContextUtil.CreateActionContext(); in Validate_SkipsRemainingValidationIfModelStateIsInvalid() 211 node.Validate(ContextUtil.CreateActionContext()); in Validate_SkipsValidationIfHandlerCancels() 233 node.Validate(ContextUtil.CreateActionContext()); in Validate_SkipsValidationIfSuppressed() 263 HttpActionContext context = ContextUtil.CreateActionContext(); in Validate_ValidateAllProperties_AddsValidationErrors()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/Tracing/Tracers/ |
H A D | HttpControllerTracerTest.cs | 74 var context = ContextUtil.CreateControllerContext(request: request); in ExecuteAsync_RemovesInnerControllerFromReleaseListAndAddsItselfInstead() 104 … HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(request: request); in ExecuteAsync_Invokes_Inner_And_Traces() 108 …HttpActionContext actionContext = ContextUtil.CreateActionContext(controllerContext, actionDescrip… in ExecuteAsync_Invokes_Inner_And_Traces() 138 … HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(request: request); in ExecuteAsync_Faults_And_Traces_When_Inner_Faults() 142 …HttpActionContext actionContext = ContextUtil.CreateActionContext(controllerContext, actionDescrip… in ExecuteAsync_Faults_And_Traces_When_Inner_Faults() 170 … HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(request: request); in ExecuteAsync_IsCancelled_And_Traces_When_Inner_IsCancelled() 174 …HttpActionContext actionContext = ContextUtil.CreateActionContext(controllerContext, actionDescrip… in ExecuteAsync_IsCancelled_And_Traces_When_Inner_IsCancelled()
|
H A D | HttpActionDescriptorTracerTest.cs | 30 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in GetFilterPipeline_Returns_Wrapped_Filters() 53 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in GetFilters_Returns_Wrapped_IFilters() 73 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in ExecuteAsync_Invokes_Inner_ExecuteAsync() 93 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in ExecuteAsync_Traces() 121 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in ExecuteAsync_Throws_What_Inner_Throws_And_Traces()
|
H A D | ActionValueBinderTracerTest.cs | 30 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(request: new HttpReq… in GetBinding_Returns_HttpActionBindingTracer() 59 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(request: new HttpReq… in GetBinding_Invokes_Inner_And_Returns_ActionBinder_With_Tracing_HttpParameterBinding() 87 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(request: new HttpReq… in GetBinding_Invokes_Inner_And_Returns_ActionBinder_With_Tracing_FormatterParameterBinding()
|
H A D | HttpActionInvokerTracerTest.cs | 26 _actionContext = ContextUtil.CreateActionContext( in HttpActionInvokerTracerTest() 27 ContextUtil.CreateControllerContext(instance: _apiController), in HttpActionInvokerTracerTest() 47 HttpActionContext context = ContextUtil.CreateActionContext( in InvokeActionAsync_Calls_ActionDescriptor_ExecuteAsync() 48 ContextUtil.CreateControllerContext(instance: _apiController), in InvokeActionAsync_Calls_ActionDescriptor_ExecuteAsync()
|
H A D | FormatterParameterBindingTracerTest.cs | 36 HttpActionContext actionContext = ContextUtil.CreateActionContext(); in ExecuteBindingAsync_Traces_And_Invokes_Inner_ReadAsync() 72 HttpActionContext actionContext = ContextUtil.CreateActionContext(); in ExecuteBindingAsync_Traces_And_Throws_When_Inner_Throws() 110 HttpActionContext actionContext = ContextUtil.CreateActionContext(); in ExecuteBindingAsync_Traces_And_Faults_When_Inner_Faults()
|
H A D | HttpParameterBindingTracerTest.cs | 32 HttpActionContext actionContext = ContextUtil.CreateActionContext(); in ExecuteBindingAsync_Traces_And_Invokes_Inner() 66 HttpActionContext actionContext = ContextUtil.CreateActionContext(); in ExecuteBindingAsync_Traces_And_Throws_When_Inner_Throws() 104 HttpActionContext actionContext = ContextUtil.CreateActionContext(); in ExecuteBindingAsync_Traces_And_Faults_When_Inner_Faults()
|
H A D | ActionFilterAttributeTracerTest.cs | 25 …HttpActionContext actionContext = ContextUtil.CreateActionContext(actionDescriptor: mockActionDesc… in ExecuteActionFilterAsync_Traces_Executing_And_Executed() 56 …HttpActionContext actionContext = ContextUtil.CreateActionContext(actionDescriptor: mockActionDesc… in ExecuteActionFilterAsync_Faults_And_Traces_When_OnExecuting_Faults() 87 …HttpActionContext actionContext = ContextUtil.CreateActionContext(actionDescriptor: mockActionDesc… in ExecuteActionFilterAsync_Faults_And_Traces_When_OnExecuted_Faults()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/ |
H A D | QueryableAttributeTest.cs | 29 …_actionContext = ContextUtil.CreateActionContext(ContextUtil.CreateControllerContext(request: _req… in QueryableAttributeTest() 36 _actionExecutedContext = ContextUtil.GetActionExecutedContext(_request, _response); in QueryableAttributeTest() 137 var actionContext = ContextUtil.GetActionExecutedContext(request, response: null); in OnActionExecutedOnNullResponse()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/Controllers/ |
H A D | HttpActionContextTest.cs | 28 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in Parameter_Constructor() 52 () => new HttpActionContext(ContextUtil.CreateControllerContext(), null), in Constructor_Throws_IfActionDescriptorIsNull() 64 roundTripTestValue: ContextUtil.CreateControllerContext()); in ControllerContext_Property()
|
H A D | ApiControllerTest.cs | 29 … private readonly HttpActionContext _actionContextInstance = ContextUtil.CreateActionContext(); 39 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in Setting_CustomActionInvoker() 69 HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(); in Setting_CustomActionSelector() 104 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, reque… in Default_Get() 121 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, reque… in Default_Post() 138 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, reque… in Default_Put() 155 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, reque… in Default_Delete() 174 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, route… in Route_ActionName() 195 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, route… in Route_Get_Action_With_Route_Parameters() 216 …HttpControllerContext controllerContext = ContextUtil.CreateControllerContext(instance: api, route… in Route_Get_Action_With_Query_Parameters() [all …]
|
H A D | ApiControllerActionSelectorTest.cs | 16 HttpControllerContext GetContext = ContextUtil.CreateControllerContext(); in SelectAction_With_DifferentExecutionContexts() 24 HttpControllerContext PostContext = ContextUtil.CreateControllerContext(); in SelectAction_With_DifferentExecutionContexts()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/ModelBinding/ |
H A D | CompositeModelBinderTest.cs | 43 … HttpActionContext actionContext = ContextUtil.CreateActionContext(GetHttpControllerContext()); in BindModel_SuccessfulBind_RunsValidationAndReturnsModel() 98 … HttpActionContext actionContext = ContextUtil.CreateActionContext(GetHttpControllerContext()); in BindModel_SuccessfulBind_ComplexTypeFallback_RunsValidationAndReturnsModel() 157 … HttpActionContext actionContext = ContextUtil.CreateActionContext(GetHttpControllerContext()); in BindModel_UnsuccessfulBind_BinderFails_ReturnsNull() 191 … HttpActionContext actionContext = ContextUtil.CreateActionContext(GetHttpControllerContext()); in BindModel_UnsuccessfulBind_SimpleTypeNoFallback_ReturnsNull() 220 return ContextUtil.CreateControllerContext(); in GetHttpControllerContext()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.EnterpriseServices/System.EnterpriseServices/ |
H A D | ContextUtil.cs | 35 public sealed class ContextUtil { class 46 internal ContextUtil () in ContextUtil() method in System.EnterpriseServices.ContextUtil
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Integration.Test/Util/ |
H A D | ContextUtil.cs | 12 public static class ContextUtil class 56 … HttpControllerContext context = controllerContext ?? ContextUtil.CreateControllerContext(); in CreateActionContext()
|
/dports/lang/mono/mono-5.10.1.57/external/aspnetwebstack/test/System.Web.Http.Test/Util/ |
H A D | ContextUtil.cs | 12 internal static class ContextUtil class 33 … HttpControllerContext context = controllerContext ?? ContextUtil.CreateControllerContext(); in CreateActionContext()
|
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/Util/ |
H A D | Transactions.cs | 145 inTransaction = ContextUtil.IsInTransaction; 159 if (ContextUtil.MyTransactionVote == TransactionVote.Abort)
|