using System.Collections.Generic;
using System.Reflection;
using Emby.Server.Implementations;
using MediaBrowser.Controller;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Server.Integration.Tests
{
///
/// Implementation of the abstract class.
///
public class TestAppHost : CoreAppHost
{
///
/// Initializes a new instance of the class.
///
/// The to be used by the .
/// The to be used by the .
/// The to be used by the .
/// The to be used by the .
public TestAppHost(
IServerApplicationPaths applicationPaths,
ILoggerFactory loggerFactory,
IStartupOptions options,
IConfiguration startup)
: base(
applicationPaths,
loggerFactory,
options,
startup)
{
}
///
protected override IEnumerable GetAssembliesWithPartsInternal()
{
foreach (var a in base.GetAssembliesWithPartsInternal())
{
yield return a;
}
yield return typeof(TestPlugin).Assembly;
}
}
}