3 instantiations of DISimpleModel
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (3)
31
var simpleModel = new
DISimpleModel
();
63
var simpleModel = new
DISimpleModel
();
96
var model = new
DISimpleModel
();
11 references to DISimpleModel
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Infrastructure\ServiceBasedPageModelActivatorProviderTest.cs (11)
31
var
simpleModel = new DISimpleModel();
33
serviceProvider.Setup(s => s.GetService(typeof(
DISimpleModel
)))
46
ModelTypeInfo = typeof(
DISimpleModel
).GetTypeInfo(),
63
var
simpleModel = new DISimpleModel();
65
serviceProvider.Setup(s => s.GetService(typeof(
DISimpleModel
)))
78
ModelTypeInfo = typeof(
DISimpleModel
).GetTypeInfo(),
87
var
simpleModel2 = Assert.IsType<
DISimpleModel
>(model);
95
var expected = "No service for type '" + typeof(
DISimpleModel
) + "' has been registered.";
96
var
model = new DISimpleModel();
109
ModelTypeInfo = typeof(
DISimpleModel
).GetTypeInfo(),