12 writes to TempData
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
ControllerTest.cs (12)
70
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
91
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
115
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
136
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
158
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
180
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
202
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
226
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
249
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
271
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
293
TempData
= new TempDataDictionary(new DefaultHttpContext(), Mock.Of<ITempDataProvider>()),
456
TempData
= tempData,
45 references to TempData
BasicWebSite (24)
Controllers\TempDataController.cs (21)
20
TempData
["key"] = value;
26
TempData
["key"] = value;
32
var value =
TempData
["key"];
38
var value =
TempData
["key"];
44
var peekValue =
TempData
.Peek("key");
55
TempData
["key1"] = value;
56
TempData
["key2"] = intValue;
57
TempData
["key3"] = listValues;
58
TempData
["key4"] = datetimeValue;
59
TempData
["key5"] = guidValue;
65
TempData
["value1"] = "steve";
72
var value1 =
TempData
["key1"].ToString();
73
var value2 = Convert.ToInt32(
TempData
["key2"], CultureInfo.InvariantCulture);
74
var value3 = (IList<string>)
TempData
["key3"];
75
var value4 = (DateTime)
TempData
["key4"];
76
var value5 = (Guid)
TempData
["key5"];
89
return
TempData
["Name"]?.ToString();
95
TempData
["LargeValue"] = new string(character, size);
102
return
TempData
["LargeValue"]?.ToString();
109
TempData
[nameof(UnhandledExceptionAndSettingTempData)] = "James";
116
return
TempData
[nameof(UnhandledExceptionAndSettingTempData)]?.ToString();
Controllers\TempDataPropertyController.cs (1)
54
TempData
.Keep();
Controllers\TestingController.cs (2)
137
TempData
["Value"] = value + 1;
148
TempDataValue = (int)
TempData
["Value"],
GenericHostWebSite (2)
Controllers\TestingController.cs (2)
123
TempData
["Value"] = value + 1;
134
TempDataValue = (int)
TempData
["Value"],
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Controller.cs (4)
150
TempData =
TempData
203
TempData =
TempData
254
TempData =
TempData
277
TempData =
TempData
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
ControllerTest.cs (13)
80
Assert.Same(controller.
TempData
, actualViewResult.TempData);
104
Assert.Same(controller.
TempData
, actualViewResult.TempData);
125
Assert.Same(controller.
TempData
, actualViewResult.TempData);
147
Assert.Same(controller.
TempData
, actualViewResult.TempData);
169
Assert.Same(controller.
TempData
, actualViewResult.TempData);
191
Assert.Same(controller.
TempData
, actualViewResult.TempData);
215
Assert.Same(controller.
TempData
, actualViewResult.TempData);
238
Assert.Same(controller.
TempData
, actualViewResult.TempData);
260
Assert.Same(controller.
TempData
, actualViewResult.TempData);
282
Assert.Same(controller.
TempData
, actualViewResult.TempData);
304
Assert.Same(controller.
TempData
, actualViewResult.TempData);
379
controller.
TempData
["key"] = input;
380
var result = controller.
TempData
["key"];
ControllerUnitTestabilityTests.cs (2)
35
Assert.Same(controller.
TempData
, viewResult.TempData);
57
Assert.Same(controller.
TempData
, viewResult.TempData);