forked from ddrilling/AsbCloudServer
23 lines
701 B
C#
23 lines
701 B
C#
using System.Net.Http.Headers;
|
|
using System.Text.Json;
|
|
using AsbCloudDb.Model;
|
|
using AsbCloudWebApi.IntegrationTests.Clients;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Refit;
|
|
using Xunit;
|
|
|
|
namespace AsbCloudWebApi.IntegrationTests;
|
|
|
|
public abstract class BaseIntegrationTest : IClassFixture<WebAppFactoryFixture>
|
|
{
|
|
protected readonly IServiceScope scope;
|
|
protected readonly IAsbCloudDbContext dbContext;
|
|
protected readonly WebAppFactoryFixture factory;
|
|
|
|
protected BaseIntegrationTest(WebAppFactoryFixture factory)
|
|
{
|
|
scope = factory.Services.CreateScope();
|
|
dbContext = scope.ServiceProvider.GetRequiredService<IAsbCloudDbContext>();
|
|
this.factory = factory;
|
|
}
|
|
} |