1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 17:59:14 +00:00
Radarr/NzbDrone.App.Test/CentralDispatchTests.cs

45 lines
1.1 KiB
C#
Raw Normal View History

2011-10-13 02:24:30 +00:00
using FluentAssertions;
2011-10-11 07:11:05 +00:00
using NUnit.Framework;
using Ninject;
2011-11-13 18:16:31 +00:00
using NzbDrone.Test.Common;
2011-10-11 07:11:05 +00:00
namespace NzbDrone.App.Test
{
[TestFixture]
2011-11-13 18:16:31 +00:00
public class CentralDispatchTests : TestBase
2011-10-11 07:11:05 +00:00
{
[Test]
public void Kernel_can_get_kernel()
{
CentralDispatch.Kernel.Should().NotBeNull();
}
[Test]
public void Kernel_should_return_same_kernel()
{
var firstKernel = CentralDispatch.Kernel;
var secondKernel = CentralDispatch.Kernel;
firstKernel.Should().BeSameAs(secondKernel);
}
[Test]
public void Kernel_should_be_able_to_resolve_ApplicationServer()
{
var appServer = CentralDispatch.Kernel.Get<ApplicationServer>();
appServer.Should().NotBeNull();
}
2011-10-13 02:24:30 +00:00
[Test]
public void Kernel_should_resolve_same_ApplicationServer_instance()
{
var appServer1 = CentralDispatch.Kernel.Get<ApplicationServer>();
var appServer2 = CentralDispatch.Kernel.Get<ApplicationServer>();
appServer1.Should().BeSameAs(appServer2);
}
2011-10-11 07:11:05 +00:00
}
}