18 references to PageConventionCollection
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageConventionCollection.cs (1)
23
:
this
((IServiceProvider?)null)
DependencyInjection\RazorPagesOptionsSetup.cs (1)
23
options.Conventions = new
PageConventionCollection
(_serviceProvider);
Microsoft.AspNetCore.Mvc.RazorPages.Test (16)
ApplicationModels\PageConventionCollectionTest.cs (2)
79
var collection = new
PageConventionCollection
(Mock.Of<IServiceProvider>())
99
var collection = new
PageConventionCollection
(Mock.Of<IServiceProvider>())
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
982
return new
PageConventionCollection
(serviceProvider);
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
27
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>())
61
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>())
93
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>());
120
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>()) { handlerModelConvention.Object };
151
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>());
182
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>());
213
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>()) { parameterModelConvention.Object };
248
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>());
282
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>());
313
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>()) { propertyModelConvention.Object };
345
var conventionCollection = new
PageConventionCollection
(Mock.Of<IServiceProvider>());
Infrastructure\DefaultPageLoaderTest.cs (1)
20
private readonly IOptions<RazorPagesOptions> RazorPagesOptions = Options.Create(new RazorPagesOptions { Conventions = new
PageConventionCollection
(Mock.Of<IServiceProvider>()) });
Infrastructure\PageActionDescriptorProviderTest.cs (1)
371
return Options.Create(new RazorPagesOptions { Conventions = new
PageConventionCollection
(Mock.Of<IServiceProvider>()) });