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