markrendle/Simple.Data — Issue #168: FindBy with named parameters does not work with InMemoryAdapter
Author: saggett
Created: 2012-03-05 11:07:00+00:00
State: open

Using Simple.Data 0.14.0.3, this works:

Establish that = () =>
{
InMemDB.SourcePublisherAltSource.Insert(Id: 1, SourceId: 2,
Publisher: "samplepublisher",
AltSourceId: 99);
};

It has_a_new_mapping_for_somepublisher =
() =>
((object)InMemDB.SourcePublisherAltSource.FindByPublisherAndSourceIdAndAltSourceId("samplepublisher", 2, 99)).ShouldNotBeNull();

But this fails:

Establish that = () =>
{
InMemDB.SourcePublisherAltSource.Insert(Id: 1, SourceId: 2,
Publisher: "samplepublisher",
AltSourceId: 99);
};

It has_a_new_mapping_for_somepublisher =
() =>
((object)InMemDB.SourcePublisherAltSource.FindBy(Publisher: "samplepublisher", SourceId: 2, AltSourceId: 99)).ShouldNotBeNull();