mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
failed attempt to write a test for Series Controller
This commit is contained in:
@@ -14,7 +14,7 @@ namespace NzbDrone.Core
|
||||
|
||||
public static void BindKernel(IKernel kernel)
|
||||
{
|
||||
string connectionString = String.Format("Data Source={0};Version=3;",Path.Combine(AppPath, "nzbdrone.db")) ;
|
||||
string connectionString = String.Format("Data Source={0};Version=3;", Path.Combine(AppPath, "nzbdrone.db"));
|
||||
var provider = ProviderFactory.GetProvider(connectionString, "System.Data.SQLite");
|
||||
|
||||
kernel.Bind<ISeriesController>().To<SeriesController>();
|
||||
@@ -25,9 +25,6 @@ namespace NzbDrone.Core
|
||||
kernel.Bind<IRepository>().ToMethod(c => new SimpleRepository(provider, SimpleRepositoryOptions.RunMigrations));
|
||||
}
|
||||
|
||||
|
||||
private static string _appPath;
|
||||
|
||||
public static String AppPath
|
||||
{
|
||||
get { return new DirectoryInfo(HttpContext.Current.Server.MapPath("\\")).Parent.FullName; }
|
||||
|
Reference in New Issue
Block a user