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.TestHost": "1.0.0-rc1-final",
"Microsoft.Dnx.Runtime": "1.0.0-rc1-final", "Microsoft.Dnx.Runtime": "1.0.0-rc1-final",
"xunit.runner.dnx": "2.1.0-rc1-build204", "xunit.runner.dnx": "2.1.0-rc1-build204",
"Yavsc.Server": {
"target": "project"
},
"Yavsc": { "Yavsc": {
"target": "project" "target": "project"
} }

View File

@ -9,7 +9,7 @@ using Yavsc.Abstract.Manage;
using Yavsc.Lib; using Yavsc.Lib;
using Yavsc.Services; using Yavsc.Services;
namespace Yavsc.test namespace test
{ {
[Collection("EMaillingTeststCollection")] [Collection("EMaillingTeststCollection")]
@ -40,4 +40,4 @@ namespace Yavsc.test
output.WriteLine($">>done with {mailSentInfo.EMail} {mailSentInfo.Sent} {mailSentInfo.MessageId} {mailSentInfo.ErrorMessage}"); output.WriteLine($">>done with {mailSentInfo.EMail} {mailSentInfo.Sent} {mailSentInfo.MessageId} {mailSentInfo.ErrorMessage}");
} }
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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