13 instantiations of MyParamType
Microsoft.AspNetCore.Components.Tests (13)
CascadingParameterTest.cs (13)
450return new MyParamType("Hello"); 493services.AddCascadingValue("Ignored", _ => new MyParamType("Should be ignored")); 494services.AddCascadingValue("My cascading parameter name", _ => new MyParamType("Should be used")); 495services.AddCascadingValue("Also ignored", _ => new MyParamType("Should also be ignored")); 521services.AddCascadingValue(_ => new MyParamType("Hello from services (this should be overridden)")); 526builder.AddComponentParameter(1, "Value", new MyParamType("Hello from component hierarchy")); 560var cascadingValueSource = new CascadingValueSource<MyParamType>(new MyParamType("Initial value"), isFixed: false); 575var myParamValue = new MyParamType("Initial value"); 615await cascadingValueSource.NotifyChangedAsync(new MyParamType("Whole new object")); 634await cascadingValueSource.NotifyChangedAsync(new MyParamType("Nobody is listening, but this shouldn't be an error")); 642var paramValue = new MyParamType("Initial value"); 704var updatedValue = new MyParamType("Updated value"); 841var paramValue = new MyParamType("Initial value");
23 references to MyParamType
Microsoft.AspNetCore.Components.Tests (23)
CascadingParameterTest.cs (23)
461var component = new CascadingParameterConsumerComponent<MyParamType> { RegularParameter = "Goodbye" }; 481var anotherConsumer = new CascadingParameterConsumerComponent<MyParamType> { RegularParameter = "Goodbye" }; 525builder.OpenComponent<CascadingValue<MyParamType>>(0); 529childBuilder.OpenComponent<CascadingParameterConsumerComponent<MyParamType>>(0); 540var nestedComponent = FindComponent<CascadingParameterConsumerComponent<MyParamType>>(batch, out var nestedComponentId); 560var cascadingValueSource = new CascadingValueSource<MyParamType>(new MyParamType("Initial value"), isFixed: false); 563var component = new CascadingParameterConsumerComponent<MyParamType>(); 575var myParamValue = new MyParamType("Initial value"); 576var cascadingValueSource = new CascadingValueSource<MyParamType>(myParamValue, isFixed: false); 579var component = new CascadingParameterConsumerComponent<MyParamType> { RegularParameter = "Goodbye" }; 642var paramValue = new MyParamType("Initial value"); 643var cascadingValueSource = new CascadingValueSource<MyParamType>(paramValue, isFixed: false); 697var cascadingValueSource = new CascadingValueSource<MyParamType>( 701var component = new CascadingParameterConsumerComponent<MyParamType> { RegularParameter = "Goodbye" }; 704var 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)] 841var paramValue = new MyParamType("Initial value"); 842var cascadingValueSource = new CascadingValueSource<MyParamType>(paramValue, isFixed: false); 961[CascadingParameter] MyParamType CascadingParameter { get; set; } 981[CascadingParameter] MyParamType CascadingParameter { get; set; }