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)
41
return
Get
(key);
Microsoft.AspNetCore.Components.Endpoints.Tests (18)
TempData\TempDataTest.cs (18)
28
var value = tempData.
Get
("Key1");
39
var value = tempData.
Get
("NonExistent");
50
value = tempData.
Get
("Key1");
68
_ = tempData.
Get
("Key1");
69
_ = tempData.
Get
("Key2");
73
var value1 = tempData.
Get
("Key1");
74
var value2 = tempData.
Get
("Key2");
85
_ = tempData.
Get
("Key1");
86
_ = tempData.
Get
("Key2");
100
_ = tempData.
Get
("Key1");
104
var value = tempData.
Get
("NonExistent");
134
var value = tempData.
Get
("Key1");
153
_ = tempData.
Get
("Key1");
154
_ = tempData.
Get
("Key2");
174
Assert.Equal("Value1", tempData.
Get
("Key1"));
175
Assert.Equal("Value2", tempData.
Get
("Key2"));
203
Assert.Null(tempData.
Get
("Key1"));
204
Assert.Null(tempData.
Get
("Key2"));