using Microsoft.AspNetCore.Mvc.Testing; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Timeline.Tests.Helpers; using Xunit; namespace Timeline.Tests.IntegratedTests { public abstract class IntegratedTestBase : IClassFixture>, IDisposable { protected TestApplication TestApp { get; } protected WebApplicationFactory Factory => TestApp.Factory; public IntegratedTestBase(WebApplicationFactory factory) { TestApp = new TestApplication(factory); } public virtual void Dispose() { TestApp.Dispose(); } } }