Implemented interface member:
method
Get
Microsoft.AspNetCore.Components.ITempData.Get(System.String)
19 references to Get
Microsoft.AspNetCore.Components.Endpoints (1)
TempData\TempData.cs (1)
41return Get(key);
Microsoft.AspNetCore.Components.Endpoints.Tests (18)
TempData\TempDataTest.cs (18)
28var value = tempData.Get("Key1"); 39var value = tempData.Get("NonExistent"); 50value = tempData.Get("Key1"); 68_ = tempData.Get("Key1"); 69_ = tempData.Get("Key2"); 73var value1 = tempData.Get("Key1"); 74var value2 = tempData.Get("Key2"); 85_ = tempData.Get("Key1"); 86_ = tempData.Get("Key2"); 100_ = tempData.Get("Key1"); 104var value = tempData.Get("NonExistent"); 134var value = tempData.Get("Key1"); 153_ = tempData.Get("Key1"); 154_ = tempData.Get("Key2"); 174Assert.Equal("Value1", tempData.Get("Key1")); 175Assert.Equal("Value2", tempData.Get("Key2")); 203Assert.Null(tempData.Get("Key1")); 204Assert.Null(tempData.Get("Key2"));