12 references to CustomResult
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateFactoryTests.cs (12)
1449
CustomResult TestAction() => new
CustomResult
(resultString);
1450
Task<CustomResult> TaskTestAction() => Task.FromResult(new
CustomResult
(resultString));
1451
ValueTask<CustomResult> ValueTaskTestAction() => ValueTask.FromResult(new
CustomResult
(resultString));
1452
FSharp.Control.FSharpAsync<CustomResult> FSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new
CustomResult
(resultString));
1454
static CustomResult StaticTestAction() => new
CustomResult
("Still not enough tests!");
1455
static Task<CustomResult> StaticTaskTestAction() => Task.FromResult(new
CustomResult
("Still not enough tests!"));
1456
static ValueTask<CustomResult> StaticValueTaskTestAction() => ValueTask.FromResult(new
CustomResult
("Still not enough tests!"));
1457
static FSharp.Control.FSharpAsync<CustomResult> StaticFSharpAsyncTestAction() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return(new
CustomResult
("Still not enough tests!"));
1460
static object StaticResultAsObject() => new
CustomResult
("Still not enough tests!");
1463
static Task<object> StaticTaskOfIResultAsObject() => Task.FromResult<object>(new
CustomResult
("Still not enough tests!"));
1464
static ValueTask<object> StaticValueTaskOfIResultAsObject() => ValueTask.FromResult<object>(new
CustomResult
("Still not enough tests!"));
1465
static FSharp.Control.FSharpAsync<object> StaticFSharpAsyncOfIResultAsObject() => FSharp.Core.ExtraTopLevelOperators.DefaultAsyncBuilder.Return<object>(new
CustomResult
("Still not enough tests!"));