26 lines
796 B
C#
26 lines
796 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNetCore.Blazor.Browser.Interop;
|
|
using Microsoft.AspNetCore.Blazor.Browser.Rendering;
|
|
using Microsoft.AspNetCore.Blazor.Components;
|
|
using System;
|
|
|
|
namespace BasicTestApp
|
|
{
|
|
public class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
// Signal to tests that we're ready
|
|
RegisteredFunction.Invoke<object>("testReady");
|
|
}
|
|
|
|
public static void MountTestComponent(string componentTypeName)
|
|
{
|
|
var componentType = Type.GetType(componentTypeName);
|
|
new BrowserRenderer().AddComponent(componentType, "app");
|
|
}
|
|
}
|
|
}
|