BootstrapAdmin/test/UnitTest/BAMySQLWebHost.cs

37 lines
901 B
C#

// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone
using Longbow.Data;
using Microsoft.AspNetCore.Hosting;
using Xunit;
namespace Bootstrap.Admin
{
/// <summary>
///
/// </summary>
[CollectionDefinition("MySqlContext")]
public class MySqlContext : ICollectionFixture<BAMySqlWebHost>
{
}
/// <summary>
///
/// </summary>
public class BAMySqlWebHost : BALoginWebHost
{
/// <summary>
///
/// </summary>
/// <param name="builder"></param>
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
base.ConfigureWebHost(builder);
builder.ConfigureDatabase(DatabaseProviderType.MySql);
}
}
}