fixes the tests
This commit is contained in:
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user