91 references to AttributeValue
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeFrame.cs (1)
463return $"Attribute: (seq={Sequence}, id={AttributeEventHandlerId}) '{AttributeName}'='{AttributeValue}'";
Microsoft.AspNetCore.Components.Authorization.Tests (5)
src\Components\Shared\test\AssertFrame.cs (5)
52Assert.Equal(attributeValue, frame.AttributeValue); 58Assert.Equal(attributeEventHandlerValue, frame.AttributeValue); 64Assert.Equal(attributeValue, frame.AttributeValue); 70Assert.IsType(valueType, frame.AttributeValue); 76attributeValidator(frame.AttributeValue);
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
ImportMapTest.cs (5)
72Assert.Equal("importmap", frames.Array[1].AttributeValue); 74Assert.Equal("random", frames.Array[2].AttributeValue); 119Assert.Equal("importmap", frames.Array[1].AttributeValue); 184Assert.Equal("importmap", frames.Array[1].AttributeValue); 243Assert.Equal("importmap", frames.Array[1].AttributeValue);
Routing\BasePathTest.cs (1)
67return attribute.AttributeValue?.ToString();
src\Components\Shared\test\AssertFrame.cs (5)
52Assert.Equal(attributeValue, frame.AttributeValue); 58Assert.Equal(attributeEventHandlerValue, frame.AttributeValue); 64Assert.Equal(attributeValue, frame.AttributeValue); 70Assert.IsType(valueType, frame.AttributeValue); 76attributeValidator(frame.AttributeValue);
Microsoft.AspNetCore.Components.Forms.Tests (5)
src\Components\Shared\test\AssertFrame.cs (5)
52Assert.Equal(attributeValue, frame.AttributeValue); 58Assert.Equal(attributeEventHandlerValue, frame.AttributeValue); 64Assert.Equal(attributeValue, frame.AttributeValue); 70Assert.IsType(valueType, frame.AttributeValue); 76attributeValidator(frame.AttributeValue);
Microsoft.AspNetCore.Components.QuickGrid.Tests (5)
src\Components\Shared\test\AssertFrame.cs (5)
52Assert.Equal(attributeValue, frame.AttributeValue); 58Assert.Equal(attributeEventHandlerValue, frame.AttributeValue); 64Assert.Equal(attributeValue, frame.AttributeValue); 70Assert.IsType(valueType, frame.AttributeValue); 76attributeValidator(frame.AttributeValue);
Microsoft.AspNetCore.Components.Server (2)
src\Components\Shared\src\RenderBatchWriter.cs (2)
146if (frame.AttributeValue is bool boolValue) 159var attributeValueString = frame.AttributeValue as string;
Microsoft.AspNetCore.Components.Tests (23)
RendererTest.cs (15)
556.First(frame => frame.AttributeValue != null) 586.First(frame => frame.AttributeValue != null) 614.First(frame => frame.AttributeValue != null) 637.First(frame => frame.AttributeValue != null) 660.First(frame => frame.AttributeValue != null) 683.First(frame => frame.AttributeValue != null) 709.First(frame => frame.AttributeValue != null) 740.First(frame => frame.AttributeValue != null) 769.First(frame => frame.AttributeValue != null) 809.First(frame => frame.AttributeValue != null) 847.First(frame => frame.AttributeValue != null) 890.First(frame => frame.AttributeValue != null) 933.First(frame => frame.AttributeValue != null) 987.First(frame => frame.AttributeValue != null) 3508.First(frame => frame.AttributeValue != null)
Routing\RouterTest.cs (3)
348var routeData = (RouteData)routeViewFrame.AttributeValue; 400var routeData = (RouteData)routeViewFrame.AttributeValue; 452var routeData = (RouteData)routeViewFrame.AttributeValue;
src\Components\Shared\test\AssertFrame.cs (5)
52Assert.Equal(attributeValue, frame.AttributeValue); 58Assert.Equal(attributeEventHandlerValue, frame.AttributeValue); 64Assert.Equal(attributeValue, frame.AttributeValue); 70Assert.IsType(valueType, frame.AttributeValue); 76attributeValidator(frame.AttributeValue);
Microsoft.AspNetCore.Components.Web (3)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (3)
309capturedValueAttribute = frame.AttributeValue as string; 318!string.IsNullOrEmpty(frame.AttributeValue as string)) 323switch (frame.AttributeValue)
Microsoft.AspNetCore.Components.Web.Tests (30)
Forms\EditFormTest.cs (1)
200.ToDictionary(f => f.AttributeName, f => f.AttributeValue);
Forms\InputCheckboxTest.cs (2)
42Assert.Equal("model_BoolProperty", idAttribute.AttributeValue); 60Assert.Equal("custom-checkbox-id", idAttribute.AttributeValue);
Forms\InputDateTest.cs (2)
71Assert.Equal("model_DateProperty", idAttribute.AttributeValue); 89Assert.Equal("custom-date-id", idAttribute.AttributeValue);
Forms\InputHiddenTest.cs (2)
42Assert.Equal("model_StringProperty", idAttribute.AttributeValue); 60Assert.Equal("custom-hidden-id", idAttribute.AttributeValue);
Forms\InputNumberTest.cs (3)
93Assert.Equal("range", typeAttributeFrame.AttributeValue); 110Assert.Equal("model_SomeNumber", idAttribute.AttributeValue); 128Assert.Equal("custom-number-id", idAttribute.AttributeValue);
Forms\InputSelectTest.cs (2)
230Assert.Equal("model_NotNullableEnum", idAttribute.AttributeValue); 248Assert.Equal("custom-select-id", idAttribute.AttributeValue);
Forms\InputTextAreaTest.cs (2)
42Assert.Equal("model_StringProperty", idAttribute.AttributeValue); 60Assert.Equal("custom-textarea-id", idAttribute.AttributeValue);
Forms\InputTextTest.cs (2)
45Assert.Equal("model_StringProperty", idAttribute.AttributeValue); 63Assert.Equal("custom-id", idAttribute.AttributeValue);
Forms\LabelTest.cs (7)
140Assert.Equal("form-label", classAttribute.AttributeValue); 144Assert.Equal("my-label", dataAttribute.AttributeValue); 258Assert.Equal("some-id", forAttribute.AttributeValue); 301Assert.Equal("model_PlainProperty", forAttribute.AttributeValue); 351Assert.Equal("custom-input-id", forAttribute.AttributeValue); 426Assert.Equal("label-1", initialClassAttr.AttributeValue); 445Assert.Equal("label-2", updatedClassAttr.AttributeValue);
Media\FileDownloadTest.cs (1)
210return frame.AttributeValue?.ToString();
Routing\NavLinkTest.cs (1)
67return batch.ReferenceFrames.FirstOrDefault(f => f.AttributeName == attributeName).AttributeValue;
src\Components\Shared\test\AssertFrame.cs (5)
52Assert.Equal(attributeValue, frame.AttributeValue); 58Assert.Equal(attributeEventHandlerValue, frame.AttributeValue); 64Assert.Equal(attributeValue, frame.AttributeValue); 70Assert.IsType(valueType, frame.AttributeValue); 76attributeValidator(frame.AttributeValue);
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\RenderBatchWriter.cs (2)
146if (frame.AttributeValue is bool boolValue) 159var attributeValueString = frame.AttributeValue as string;
Microsoft.AspNetCore.Components.WebView.Test (4)
Infrastructure\TestDocument.cs (4)
345attributeFrame.AttributeValue); 371var value = attributeFrame.AttributeValue; 386var value = attributeFrame.AttributeValue; 407var value = attributeFrame.AttributeValue;