Building and debugging once again

pull/6/head
Mark McDowall 12 years ago
parent 2d4998d52d
commit bc490c6bf7

@ -35,7 +35,7 @@ namespace NzbDrone.Api
.ForMember(dest => dest.QualityTypeId, opt => opt.MapFrom(src => src.Id));
//Series
Mapper.CreateMap<Core.Episodes.Series, SeriesResource>()
Mapper.CreateMap<Core.Tv.Series, SeriesResource>()
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.SeriesId))
.ForMember(dest => dest.CustomStartDate, opt => opt.ResolveUsing<NullableDatetimeToString>().FromMember(src => src.CustomStartDate))
.ForMember(dest => dest.BacklogSetting, opt => opt.MapFrom(src => (Int32)src.BacklogSetting))

@ -7,9 +7,9 @@ using NzbDrone.Core.Repository.Quality;
namespace NzbDrone.Api.Resolvers
{
public class NextAiringResolver : ValueResolver<Core.Episodes.Series, DateTime?>
public class NextAiringResolver : ValueResolver<Core.Tv.Series, DateTime?>
{
protected override DateTime? ResolveCore(Core.Episodes.Series source)
protected override DateTime? ResolveCore(Core.Tv.Series source)
{
if(String.IsNullOrWhiteSpace(source.AirTime) || !source.NextAiring.HasValue)
return source.NextAiring;

@ -22,6 +22,7 @@ namespace NzbDrone.Core
public static void RegisterCoreServices(this ContainerBuilder containerBuilder)
{
containerBuilder.RegisterAssembly("NzbDrone.Common");
containerBuilder.RegisterAssembly("NzbDrone.Core");
containerBuilder.InitDatabase();

@ -2,7 +2,6 @@
<FileVersion>1</FileVersion>
<AutoEnableOnStartup>False</AutoEnableOnStartup>
<AllowParallelTestExecution>true</AllowParallelTestExecution>
<AllowTestsToRunInParallelWithThemselves>true</AllowTestsToRunInParallelWithThemselves>
<FrameworkUtilisationTypeForNUnit>UseDynamicAnalysis</FrameworkUtilisationTypeForNUnit>
<FrameworkUtilisationTypeForGallio>Disabled</FrameworkUtilisationTypeForGallio>
<FrameworkUtilisationTypeForMSpec>Disabled</FrameworkUtilisationTypeForMSpec>

@ -1,4 +1,5 @@
using Autofac;
using System.Reflection;
using Autofac;
using NLog;
using NzbDrone.Api;
using NzbDrone.Common;
@ -33,7 +34,7 @@ namespace NzbDrone
builder.RegisterCommonServices();
builder.RegisterApiServices();
builder.RegisterAssemblyTypes("NzbDrone");
builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly());
}
private static void InitilizeApp()

Loading…
Cancel
Save