failed attempt to write a test for Series Controller

This commit is contained in:
Keivan 2010-09-27 20:04:39 -07:00
parent 020a7462c0
commit babe2735ee
10 changed files with 105 additions and 23 deletions

View file

@ -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; }