6 instantiations of TestModel
Microsoft.AspNetCore.Mvc.Core.Test (6)
Infrastructure\ActionMethodExecutorTest.cs (6)
468
public ActionResult<TestModel> ReturnsActionResultOfT() => new ActionResult<TestModel>(new
TestModel
());
472
public TestModel ReturnsModelAsModel() => new
TestModel
();
474
public object ReturnModelAsObject() => new
TestModel
();
496
public Task<TestModel> ReturnsModelAsModelAsync() => Task.FromResult(new
TestModel
());
498
public Task<object> ReturnsModelAsObjectAsync() => Task.FromResult((object)new
TestModel
());
502
public Task<ActionResult<TestModel>> ReturnActionResultOFTAsync() => Task.FromResult(new ActionResult<TestModel>(new
TestModel
()));
16 references to TestModel
Microsoft.AspNetCore.Mvc.Core.Test (16)
Infrastructure\ActionMethodExecutorTest.cs (16)
114
Assert.IsType<
TestModel
>(result.Value);
115
Assert.Equal(typeof(
TestModel
), result.DeclaredType);
143
Assert.IsType<
TestModel
>(result.Value);
144
Assert.Equal(typeof(
TestModel
), result.DeclaredType);
172
Assert.IsType<
TestModel
>(result.Value);
329
Assert.IsType<
TestModel
>(result.Value);
330
Assert.Equal(typeof(
TestModel
), result.DeclaredType);
358
Assert.IsType<
TestModel
>(result.Value);
412
Assert.IsType<
TestModel
>(result.Value);
413
Assert.Equal(typeof(
TestModel
), result.DeclaredType);
468
public ActionResult<
TestModel
> ReturnsActionResultOfT() => new ActionResult<
TestModel
>(new TestModel());
472
public
TestModel
ReturnsModelAsModel() => new TestModel();
496
public Task<
TestModel
> ReturnsModelAsModelAsync() => Task.FromResult(new TestModel());
502
public Task<ActionResult<
TestModel
>> ReturnActionResultOFTAsync() => Task.FromResult(new ActionResult<
TestModel
>(new TestModel()));