using System;
using Xunit;
using Starcounter;
using Starcounter.Hosting;
namespace Listonosz.XTests
{
public class DatabaseTest
{
[Fact]
public void DatabaseAccessTest()
{
ICodeHost host = new AppHostBuilder().UseDefaultDatabase().UseApplication(typeof(DatabaseTest).Assembly).Build();
host.Start();
host.Dispose();
}
}
}
[8/24/2017 8:33:05 AM Warning] System.NullReferenceException: Object reference not set to an instance of an object.
at Starcounter.Hosting.RuntimeHosts.SelfHosted.LifetimeService.System.IDisposable.Dispose()
at Starcounter.Hosting.SelfHostedCodeHost.Finalize()
at Starcounter.Hosting.RuntimeHosts.SelfHosted.LifetimeService.System.IDisposable.Dispose()
at Starcounter.Hosting.SelfHostedCodeHost.Finalize()