aspnetcore/test/Microsoft.AspNetCore.Compon.../ServerExecutionTests/ServerExecutionTestExtensio...

17 lines
646 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.E2ETest.Infrastructure.ServerFixtures;
namespace Microsoft.AspNetCore.Blazor.E2ETest.ServerExecutionTests
{
internal static class ServerExecutionTestExtensions
{
public static ToggleExecutionModeServerFixture<T> WithServerExecution<T>(this ToggleExecutionModeServerFixture<T> serverFixture)
{
serverFixture.UseAspNetHost(TestServer.Program.BuildWebHost);
return serverFixture;
}
}
}