forked from ddrilling/AsbCloudServer
18 lines
492 B
C#
18 lines
492 B
C#
using AsbCloudDb.Model;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Xunit;
|
|
|
|
namespace AsbCloudWebApi.IntegrationTests;
|
|
|
|
public abstract class BaseIntegrationTest : IClassFixture<WebAppFactoryFixture>
|
|
{
|
|
private readonly IServiceScope scope;
|
|
|
|
protected readonly IAsbCloudDbContext dbContext;
|
|
|
|
protected BaseIntegrationTest(WebAppFactoryFixture factory)
|
|
{
|
|
scope = factory.Services.CreateScope();
|
|
dbContext = scope.ServiceProvider.GetRequiredService<IAsbCloudDbContext>();
|
|
}
|
|
} |