12 instantiations of CustomResult
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateFactoryTests.cs (12)
1421CustomResult TestAction() => new CustomResult(resultString); 1422Task<CustomResult> TaskTestAction() => Task.FromResult(new CustomResult(resultString)); 1423ValueTask<CustomResult> ValueTaskTestAction() => ValueTask.FromResult(new CustomResult(resultString)); 1424FSharp.Control.FSharpAsync<CustomResult> FSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new CustomResult(resultString)); 1426static CustomResult StaticTestAction() => new CustomResult("Still not enough tests!"); 1427static Task<CustomResult> StaticTaskTestAction() => Task.FromResult(new CustomResult("Still not enough tests!")); 1428static ValueTask<CustomResult> StaticValueTaskTestAction() => ValueTask.FromResult(new CustomResult("Still not enough tests!")); 1429static FSharp.Control.FSharpAsync<CustomResult> StaticFSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new CustomResult("Still not enough tests!")); 1432static object StaticResultAsObject() => new CustomResult("Still not enough tests!"); 1435static Task<object> StaticTaskOfIResultAsObject() => Task.FromResult<object>(new CustomResult("Still not enough tests!")); 1436static ValueTask<object> StaticValueTaskOfIResultAsObject() => ValueTask.FromResult<object>(new CustomResult("Still not enough tests!")); 1437static FSharp.Control.FSharpAsync<object> StaticFSharpAsyncOfIResultAsObject() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return<object>(new CustomResult("Still not enough tests!"));
16 references to CustomResult
Microsoft.AspNetCore.Http.Extensions.Tests (16)
RequestDelegateFactoryTests.cs (16)
1421CustomResult TestAction() => new CustomResult(resultString); 1422Task<CustomResult> TaskTestAction() => Task.FromResult(new CustomResult(resultString)); 1423ValueTask<CustomResult> ValueTaskTestAction() => ValueTask.FromResult(new CustomResult(resultString)); 1424FSharp.Control.FSharpAsync<CustomResult> FSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new CustomResult(resultString)); 1426static CustomResult StaticTestAction() => new CustomResult("Still not enough tests!"); 1427static Task<CustomResult> StaticTaskTestAction() => Task.FromResult(new CustomResult("Still not enough tests!")); 1428static ValueTask<CustomResult> StaticValueTaskTestAction() => ValueTask.FromResult(new CustomResult("Still not enough tests!")); 1429static FSharp.Control.FSharpAsync<CustomResult> StaticFSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new CustomResult("Still not enough tests!")); 1446new object[] { (Func<CustomResult>)TestAction }, 1447new object[] { (Func<Task<CustomResult>>)TaskTestAction}, 1448new object[] { (Func<ValueTask<CustomResult>>)ValueTaskTestAction}, 1449new object[] { (Func<FSharp.Control.FSharpAsync<CustomResult>>)FSharpAsyncTestAction }, 1451new object[] { (Func<CustomResult>)StaticTestAction}, 1452new object[] { (Func<Task<CustomResult>>)StaticTaskTestAction}, 1453new object[] { (Func<ValueTask<CustomResult>>)StaticValueTaskTestAction}, 1454new object[] { (Func<FSharp.Control.FSharpAsync<CustomResult>>)StaticFSharpAsyncTestAction },