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