23 references to MyParamType
Microsoft.AspNetCore.Components.Tests (23)
CascadingParameterTest.cs (23)
461
var component = new CascadingParameterConsumerComponent<
MyParamType
> { RegularParameter = "Goodbye" };
481
var anotherConsumer = new CascadingParameterConsumerComponent<
MyParamType
> { RegularParameter = "Goodbye" };
525
builder.OpenComponent<CascadingValue<
MyParamType
>>(0);
529
childBuilder.OpenComponent<CascadingParameterConsumerComponent<
MyParamType
>>(0);
540
var nestedComponent = FindComponent<CascadingParameterConsumerComponent<
MyParamType
>>(batch, out var nestedComponentId);
560
var cascadingValueSource = new CascadingValueSource<
MyParamType
>(new MyParamType("Initial value"), isFixed: false);
563
var component = new CascadingParameterConsumerComponent<
MyParamType
>();
575
var
myParamValue = new MyParamType("Initial value");
576
var cascadingValueSource = new CascadingValueSource<
MyParamType
>(myParamValue, isFixed: false);
579
var component = new CascadingParameterConsumerComponent<
MyParamType
> { RegularParameter = "Goodbye" };
642
var
paramValue = new MyParamType("Initial value");
643
var cascadingValueSource = new CascadingValueSource<
MyParamType
>(paramValue, isFixed: false);
697
var cascadingValueSource = new CascadingValueSource<
MyParamType
>(
701
var component = new CascadingParameterConsumerComponent<
MyParamType
> { RegularParameter = "Goodbye" };
704
var
updatedValue = new MyParamType("Updated value");
833
[InlineData(CascadingValueSource<
MyParamType
>.ComponentStateBuffer.Capacity - 1)]
834
[InlineData(CascadingValueSource<
MyParamType
>.ComponentStateBuffer.Capacity)]
835
[InlineData(CascadingValueSource<
MyParamType
>.ComponentStateBuffer.Capacity + 1)]
836
[InlineData(CascadingValueSource<
MyParamType
>.ComponentStateBuffer.Capacity * 2)]
841
var
paramValue = new MyParamType("Initial value");
842
var cascadingValueSource = new CascadingValueSource<
MyParamType
>(paramValue, isFixed: false);
961
[CascadingParameter]
MyParamType
CascadingParameter { get; set; }
981
[CascadingParameter]
MyParamType
CascadingParameter { get; set; }