fixed unit tests

pull/3862/head
tidusjar 4 years ago
parent 9fea842545
commit de80558f54

@ -13,7 +13,6 @@ namespace Ombi.Core.Models.Search.V2
public class MovieCollection : SearchViewModel
{
public int Id { get; set; }
public string Overview { get; set; }
public string PosterPath { get; set; }
public string Title { get; set; }

@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="MockQueryable.Moq" Version="3.1.3" />
<PackageReference Include="MockQueryable.Moq" Version="5.0.0-preview.7" />
<PackageReference Include="Moq" Version="4.10.0" />
<PackageReference Include="Nunit" Version="3.11.0" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />

@ -16,7 +16,6 @@ using Ombi.Api.CouchPotato.Models;
using Ombi.Api.Lidarr;
using Ombi.Api.Lidarr.Models;
using Ombi.Api.TheMovieDb;
using Ombi.Api.TheMovieDb;
using Ombi.Api.TheMovieDb.Models;
using Ombi.Api.TvMaze;
using Ombi.Core.Settings;
@ -649,7 +648,9 @@ namespace Ombi.Schedule.Jobs.Ombi
{
releaseDate = $"({DateTime.Parse(info.ReleaseDate).Year})";
}
#pragma warning disable RCS1075 // Avoid empty catch clause that catches System.Exception.
catch (Exception)
#pragma warning restore RCS1075 // Avoid empty catch clause that catches System.Exception.
{
// Swallow, couldn't parse the date
}

@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
<PackageReference Include="Moq" Version="4.10.0" />
<PackageReference Include="MockQueryable.Moq" Version="3.1.3" />
<PackageReference Include="MockQueryable.Moq" Version="5.0.0-preview.7" />
</ItemGroup>
<ItemGroup>

Loading…
Cancel
Save