12 writes to PageApplicationModel
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
46
context.
PageApplicationModel
= CreateModel(context.ActionDescriptor, context.PageType);
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (1)
125
PageApplicationModel
= new PageApplicationModel(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (1)
51
PageApplicationModel
= new PageApplicationModel(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
26
PageApplicationModel
= applicationModel,
48
PageApplicationModel
= new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>())
73
PageApplicationModel
= new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>())
Infrastructure\DefaultPageLoaderTest.cs (6)
52
c.
PageApplicationModel
= pageApplicationModel1;
61
c.
PageApplicationModel
= pageApplicationModel2;
131
c.
PageApplicationModel
= pageApplicationModel;
173
c.
PageApplicationModel
= new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
248
c.
PageApplicationModel
= pageApplicationModel;
308
c.
PageApplicationModel
= new PageApplicationModel(c.ActionDescriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
51 references to PageApplicationModel
Microsoft.AspNetCore.Mvc.RazorPages (9)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (1)
38
var pageModel = context.
PageApplicationModel
;
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (1)
22
var pageApplicationModel = context.
PageApplicationModel
;
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (2)
31
var pageModel = context.
PageApplicationModel
;
36
context.
PageApplicationModel
.Filters.Add(new PageResponseCacheFilter(cacheProfile, _loggerFactory));
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (1)
30
var pageApplicationModel = context.
PageApplicationModel
;
ApplicationModels\ViewDataAttributePageApplicationModelProvider.cs (2)
25
var handlerType = context.
PageApplicationModel
.HandlerType.AsType();
34
context.
PageApplicationModel
.Filters.Add(filter);
Infrastructure\CompiledPageActionDescriptorFactory.cs (2)
48
ApplyConventions(_conventions, context.
PageApplicationModel
);
50
var compiled = CompiledPageActionDescriptorBuilder.Build(context.
PageApplicationModel
, _globalFilters);
Microsoft.AspNetCore.Mvc.RazorPages.Test (42)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (5)
33
context.
PageApplicationModel
.Filters,
67
context.
PageApplicationModel
.Filters,
85
context.
PageApplicationModel
.Filters,
125
context.
PageApplicationModel
.Filters,
167
context.
PageApplicationModel
.Filters,
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (19)
144
Assert.NotNull(context.
PageApplicationModel
);
145
var propertiesOnPage = context.
PageApplicationModel
.HandlerProperties
199
Assert.NotNull(context.
PageApplicationModel
);
201
context.
PageApplicationModel
.HandlerProperties.OrderBy(p => p.PropertyName),
242
Assert.NotNull(context.
PageApplicationModel
);
244
context.
PageApplicationModel
.HandlerProperties.OrderBy(p => p.PropertyName).Where(p => p.BindingInfo != null),
296
Assert.NotNull(context.
PageApplicationModel
);
298
context.
PageApplicationModel
.HandlerMethods.OrderBy(p => p.Name),
339
Assert.NotNull(context.
PageApplicationModel
);
341
context.
PageApplicationModel
.HandlerProperties.OrderBy(p => p.PropertyName),
381
Assert.NotNull(context.
PageApplicationModel
);
383
context.
PageApplicationModel
.HandlerProperties.OrderBy(p => p.PropertyName),
428
Assert.NotNull(context.
PageApplicationModel
);
430
context.
PageApplicationModel
.HandlerMethods.OrderBy(p => p.Name),
454
var pageModel = context.
PageApplicationModel
;
475
var pageModel = context.
PageApplicationModel
;
544
var pageModel = context.
PageApplicationModel
;
582
var pageModel = context.
PageApplicationModel
;
628
var pageModel = context.
PageApplicationModel
;
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (3)
32
context.
PageApplicationModel
.Filters,
66
context.
PageApplicationModel
.Filters,
113
context.
PageApplicationModel
.Filters,
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (4)
26
Assert.Empty(context.
PageApplicationModel
.Filters);
73
var filter = Assert.Single(context.
PageApplicationModel
.Filters);
89
var filter = Assert.IsType<PageSaveTempDataPropertyFilterFactory>(Assert.Single(context.
PageApplicationModel
.Filters));
111
var filter = Assert.IsType<PageSaveTempDataPropertyFilterFactory>(Assert.Single(context.
PageApplicationModel
.Filters));
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (2)
24
Assert.Empty(context.
PageApplicationModel
.Filters);
39
var filter = Assert.Single(context.
PageApplicationModel
.Filters);
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (2)
59
context.
PageApplicationModel
.Filters,
84
context.
PageApplicationModel
.Filters,
Infrastructure\DefaultPageLoaderTest.cs (7)
51
Assert.Null(c.
PageApplicationModel
);
60
Assert.Same(pageApplicationModel1, c.
PageApplicationModel
);
69
Assert.Same(pageApplicationModel2, c.
PageApplicationModel
);
77
Assert.Same(pageApplicationModel2, c.
PageApplicationModel
);
130
Assert.Null(c.
PageApplicationModel
);
247
Assert.Null(c.
PageApplicationModel
);
307
Assert.Null(c.
PageApplicationModel
);