Closed AKlaus closed 1 year ago
.NET 7 is adding typed results to the minimal APIs (announcement).
The following test would be possible:
// Act var result = await TodosApi.GetAllTodos(db); // Assert: Check the returned result type is correct Assert.IsType<Ok<Todo[]>>(result);
Need to update the test cases for IResult of .NET 7 to check the type of IResult<T>
IResult
IResult<T>
.NET 7 is adding typed results to the minimal APIs (announcement).
The following test would be possible:
Need to update the test cases for
IResult
of .NET 7 to check the type ofIResult<T>