fixes the tests

This commit is contained in:
2018-07-20 02:27:53 +02:00
parent e418bebcc8
commit af3973af65
8 changed files with 18 additions and 9 deletions

View File

@ -36,6 +36,9 @@
"Microsoft.Dnx.TestHost": "1.0.0-rc1-final",
"Microsoft.Dnx.Runtime": "1.0.0-rc1-final",
"xunit.runner.dnx": "2.1.0-rc1-build204",
"Yavsc.Server": {
"target": "project"
},
"Yavsc": {
"target": "project"
}

View File

@ -9,7 +9,7 @@ using Yavsc.Abstract.Manage;
using Yavsc.Lib;
using Yavsc.Services;
namespace Yavsc.test
namespace test
{
[Collection("EMaillingTeststCollection")]

View File

@ -15,7 +15,7 @@ using Microsoft.AspNet.Builder.Internal;
using Yavsc;
using Microsoft.Extensions.Logging;
namespace Test
namespace test
{
[Collection("Yavsc dropped intents")]
public class NotWorking : BaseTestContext

View File

@ -2,6 +2,7 @@ using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Logging;
using Yavsc.Lib;
using Yavsc.Services;
using Yavsc;
namespace test
{

View File

@ -5,8 +5,9 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.OptionsModel;
using Yavsc.Lib;
using Yavsc.Services;
using Yavsc;
namespace Yavsc.test
namespace test
{
public class ServerSideFixture : IDisposable {
public SiteSettings _siteSetup;
@ -22,6 +23,8 @@ namespace Yavsc.test
_logger = _loggerFactory.CreateLogger<ServerSideFixture> ();
_logger.LogInformation("ServerSideFixture");
}
void InitServices()
{
var host = new WebHostBuilder();
@ -29,7 +32,7 @@ namespace Yavsc.test
var hostengnine = host
.UseEnvironment("Development")
.UseServer("test")
.UseStartup<Startup>()
.UseStartup<test.Startup>()
.Build();
_app = hostengnine.Start();
@ -46,3 +49,5 @@ namespace Yavsc.test
}
}
}

View File

@ -5,7 +5,7 @@ using System.Threading.Tasks;
using System.Diagnostics;
using Yavsc.Helpers;
namespace tests
namespace test
{
public class YavscDnxUnitTests
{

View File

@ -21,7 +21,7 @@ using Microsoft.Data.Entity;
using Xunit.Abstractions;
using System.IO;
namespace Test
namespace test
{
public class BaseTestContext {
protected IApplicationEnvironment applicationEnvironment = null;

View File

@ -18,7 +18,7 @@ using Yavsc;
using Yavsc.Lib;
using Yavsc.Models;
namespace Test
namespace test
{
[Collection("Yavsc Work In Progress")]
public class YavscWorkInProgress : BaseTestContext