27 references to DynamicallyAddedComponent
Microsoft.AspNetCore.Components.Server.Tests (27)
Circuits\CircuitHostTest.cs (27)
424[nameof(DynamicallyAddedComponent.Message)] = expectedMessage, 428await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, parameters); 432var component = Assert.IsType<DynamicallyAddedComponent>(componentState.Component); 445await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, null, componentKey); 450[nameof(DynamicallyAddedComponent.Message)] = expectedMessage, 454await UpdateComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, parameters, componentKey); 458var component = Assert.IsType<DynamicallyAddedComponent>(componentState.Component); 470await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1); 475[nameof(DynamicallyAddedComponent.Message)] = expectedMessage, 479await UpdateComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, parameters); 485var component = Assert.IsType<DynamicallyAddedComponent>(componentState.Component); 499await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>() 501[nameof(DynamicallyAddedComponent.Message)] = expectedMessage, 508[nameof(DynamicallyAddedComponent.Message)] = "Updated message", 519var component = Assert.IsType<DynamicallyAddedComponent>(componentState.Component); 538await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>() 540[nameof(DynamicallyAddedComponent.Message)] = expectedMessage, 545[nameof(DynamicallyAddedComponent.Message)] = "Updated message", 552() => UpdateComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, parameters, componentKey: "new_key")); 556var component = Assert.IsType<DynamicallyAddedComponent>(componentState.Component); 575[nameof(DynamicallyAddedComponent.Message)] = expectedMessage, 577await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, parameters);