mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
failed attempt to write a test for Series Controller
This commit is contained in:
parent
020a7462c0
commit
babe2735ee
10 changed files with 105 additions and 23 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue