12 references to CustomResult
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateFactoryTests.cs (12)
1421
CustomResult TestAction() => new
CustomResult
(resultString);
1422
Task<CustomResult> TaskTestAction() => Task.FromResult(new
CustomResult
(resultString));
1423
ValueTask<CustomResult> ValueTaskTestAction() => ValueTask.FromResult(new
CustomResult
(resultString));
1424
FSharp.Control.FSharpAsync<CustomResult> FSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new
CustomResult
(resultString));
1426
static CustomResult StaticTestAction() => new
CustomResult
("Still not enough tests!");
1427
static Task<CustomResult> StaticTaskTestAction() => Task.FromResult(new
CustomResult
("Still not enough tests!"));
1428
static ValueTask<CustomResult> StaticValueTaskTestAction() => ValueTask.FromResult(new
CustomResult
("Still not enough tests!"));
1429
static FSharp.Control.FSharpAsync<CustomResult> StaticFSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new
CustomResult
("Still not enough tests!"));
1432
static object StaticResultAsObject() => new
CustomResult
("Still not enough tests!");
1435
static Task<object> StaticTaskOfIResultAsObject() => Task.FromResult<object>(new
CustomResult
("Still not enough tests!"));
1436
static ValueTask<object> StaticValueTaskOfIResultAsObject() => ValueTask.FromResult<object>(new
CustomResult
("Still not enough tests!"));
1437
static FSharp.Control.FSharpAsync<object> StaticFSharpAsyncOfIResultAsObject() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return<object>(new
CustomResult
("Still not enough tests!"));