mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
elq id is now ignored by petapoco.
This commit is contained in:
parent
c6fa3cc02b
commit
eb90040dd6
5 changed files with 45 additions and 14 deletions
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Eloquera.Client;
|
||||
|
@ -41,6 +42,20 @@ namespace NzbDrone.Core.Test.Datastore
|
|||
Db.AsQueryable<Series>().Should().HaveCount(1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void double_insert_should_fail()
|
||||
{
|
||||
Db.Insert(testSeries);
|
||||
Assert.Throws<InvalidOperationException>(() => Db.Insert(testSeries));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void update_item_with_root_index_0_should_faile()
|
||||
{
|
||||
testSeries.Id = 0;
|
||||
Assert.Throws<InvalidOperationException>(() => Db.Update(testSeries));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_not_store_dirty_data_in_cache()
|
||||
{
|
||||
|
@ -92,11 +107,10 @@ namespace NzbDrone.Core.Test.Datastore
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void new_existing_object_should_get_new_id()
|
||||
public void new_object_should_get_new_id()
|
||||
{
|
||||
testSeries.Id = 0;
|
||||
Db.Insert(testSeries);
|
||||
Db.Insert(testSeries);
|
||||
|
||||
Db.AsQueryable<Series>().Should().HaveCount(1);
|
||||
testSeries.Id.Should().Be(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue