regres => yes
This commit is contained in:
@ -28,7 +28,7 @@ namespace test
|
||||
|
||||
|
||||
[Collection("Yavsc mandatory success story")]
|
||||
[Trait("regres", "no")]
|
||||
[Trait("regres", "yes")]
|
||||
public class BatchTests: BaseTestContext, IClassFixture<ServerSideFixture>, IDisposable
|
||||
{
|
||||
ServerSideFixture _fixture;
|
||||
|
@ -5,7 +5,7 @@ using Xunit.Abstractions;
|
||||
namespace test.Mandatory
|
||||
{
|
||||
[Collection("Database")]
|
||||
[Trait("regres", "no")]
|
||||
[Trait("regres", "yes")]
|
||||
[Trait("dev", "wip")]
|
||||
public class Database: IClassFixture<ServerSideFixture>, IDisposable
|
||||
{
|
||||
@ -16,9 +16,8 @@ namespace test.Mandatory
|
||||
this.output = output;
|
||||
_serverFixture = serverFixture;
|
||||
try {
|
||||
|
||||
= new Microsoft.Data.Entity.Infrastructure.DatabaseFacade(_serverFixture.DbContext.Database);
|
||||
|
||||
if (_serverFixture.DbCreated)
|
||||
|
||||
_serverFixture.DropTestDb();
|
||||
|
||||
}
|
||||
@ -36,7 +35,6 @@ namespace test.Mandatory
|
||||
[Fact]
|
||||
public void InstallFromScratchUsingPoweredNpgsqlUser()
|
||||
{
|
||||
|
||||
_serverFixture.EnsureTestDb();
|
||||
_serverFixture.UpgradeDb();
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ using static OAuth.AspNet.AuthServer.Constants;
|
||||
namespace test
|
||||
{
|
||||
[Collection("Yavsc Work In Progress")]
|
||||
[Trait("regres", "no")]
|
||||
[Trait("regres", "yes")]
|
||||
public class Remoting : BaseTestContext, IClassFixture<ServerSideFixture>
|
||||
{
|
||||
public Remoting(ServerSideFixture serverFixture, ITestOutputHelper output)
|
||||
@ -78,6 +78,8 @@ namespace test
|
||||
}
|
||||
internal static void EnsureWeb()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
DirectoryInfo di = new DirectoryInfo("../Yavsc");
|
||||
Environment.CurrentDirectory = di.FullName;
|
||||
var host = new WebHostBuilder();
|
||||
@ -86,7 +88,7 @@ namespace test
|
||||
|
||||
.UseEnvironment("Development")
|
||||
|
||||
.UseServer("web")
|
||||
.UseServer("Microsoft.AspNet.Server.Kestrel")
|
||||
.UseStartup<Yavsc.Startup>()
|
||||
.Build();
|
||||
// hostengine.ApplicationServices
|
||||
|
@ -140,18 +140,10 @@ namespace test
|
||||
|
||||
|
||||
TestingDatabase = (string)builder["Database"];
|
||||
|
||||
Logger.LogInformation("ServerSideFixture created.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void InitTestHost()
|
||||
{
|
||||
|
||||
|
||||
|
||||
EnsureTestDb();
|
||||
|
||||
}
|
||||
|
||||
private ModelBuilder modelBuilder;
|
||||
|
||||
@ -201,6 +193,8 @@ namespace test
|
||||
{
|
||||
Logger.LogInformation("Disposing");
|
||||
}
|
||||
|
||||
public bool DbCreated { get { return dbCreated; } }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user