1 implementation of GetTempData
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TempDataDictionaryFactory.cs (1)
29
public ITempDataDictionary
GetTempData
(HttpContext context)
24 references to GetTempData
BasicWebSite (1)
StoreIntoTempDataActionResult.cs (1)
16
var tempDataDictionary = tempDataDictionaryFactory.
GetTempData
(httpContext);
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvoker.cs (2)
114
_tempDataFactory.
GetTempData
(_pageContext.HttpContext),
153
_tempDataFactory.
GetTempData
(_pageContext.HttpContext),
PageModel.cs (1)
98
_tempData = factory?.
GetTempData
(HttpContext);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Filters\PageSaveTempDataPropertyFilterTest.cs (1)
194
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
Infrastructure\PageActionInvokerProviderTest.cs (1)
501
.Setup(t => t.
GetTempData
(It.IsAny<HttpContext>()))
Infrastructure\PageActionInvokerTest.cs (1)
1518
tempDataFactory = Mock.Of<ITempDataDictionaryFactory>(m => m.
GetTempData
(It.IsAny<HttpContext>()) == Mock.Of<ITempDataDictionary>());
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
Controller.cs (1)
72
_tempData = factory?.
GetTempData
(HttpContext);
Filters\ControllerSaveTempDataPropertyFilter.cs (1)
23
var tempData = _tempDataFactory.
GetTempData
(context.HttpContext);
Filters\SaveTempDataFilter.cs (1)
133
var tempData = factory.
GetTempData
(httpContext);
ViewComponentResultExecutor.cs (1)
83
tempData = _tempDataDictionaryFactory.
GetTempData
(context.HttpContext);
ViewExecutor.cs (1)
154
tempData = TempDataFactory.
GetTempData
(actionContext.HttpContext);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Filters\ControllerSaveTempDataPropertyFilterTest.cs (1)
205
.Setup(f => f.
GetTempData
(httpContext))
Filters\SaveTempDataFilterTest.cs (11)
36
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
61
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
72
tempDataFactory.Verify(tdf => tdf.
GetTempData
(It.IsAny<HttpContext>()), Times.Never());
84
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
105
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
115
tempDataFactory.Verify(tdf => tdf.
GetTempData
(It.IsAny<HttpContext>()), Times.Never());
127
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
137
tempDataFactory.Verify(tdf => tdf.
GetTempData
(It.IsAny<HttpContext>()), Times.Never());
207
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))
217
tempDataFactory.Verify(tdf => tdf.
GetTempData
(It.IsAny<HttpContext>()), Times.Never());
278
.Setup(f => f.
GetTempData
(It.IsAny<HttpContext>()))