Permalink
Browse files

Fix some broken tests - seems they have been broken for a while! yet …

…the tests still passed?!?
  • Loading branch information...
richardhopton committed Jan 4, 2012
1 parent 62fcfc8 commit 4bedc680ab024be2f432d2bd5347d71d00b69f99
Showing with 3 additions and 3 deletions.
  1. +3 −3 Simple.Data.InMemoryTest/InMemoryTests.cs
@@ -272,7 +272,7 @@ public void TestSkipAndTake()
public void TestJoin()
{
var adapter = new InMemoryAdapter();
- adapter.ConfigureJoin("Customer", "ID", "Orders", "Order", "CustomerID", "Customer");
+ adapter.ConfigureJoin("Customer", "ID", "Customer", "Order", "CustomerID", "Orders");
Database.UseMockAdapter(adapter);
var db = Database.Open();
db.Customer.Insert(ID: 1, Name: "NASA");
@@ -309,7 +309,7 @@ public void SeparateThreadsShouldSeeDifferentMocks()
public void FindAllWhenUsingNamePropertyShouldWork()
{
var adapter = new InMemoryAdapter();
- adapter.ConfigureJoin("Users", "Id", "Categories", "Categories", "UserId", "User");
+ adapter.ConfigureJoin("Users", "Id", "User", "Categories", "UserId", "Categories");
Database.UseMockAdapter(adapter);
var db = Database.Open();
@@ -327,7 +327,7 @@ public void FindAllWhenUsingNamePropertyShouldWork()
public void FindAllWhenUsingAnyOldPropertyNameShouldWork()
{
var adapter = new InMemoryAdapter();
- adapter.ConfigureJoin("Users", "Id", "Categories", "Categories", "UserId", "User");
+ adapter.ConfigureJoin("Users", "Id", "User", "Categories", "UserId", "Categories");
Database.UseMockAdapter(adapter);
var db = Database.Open();

5 comments on commit 4bedc68

@marcusoftnet

This comment has been minimized.

Show comment Hide comment
@marcusoftnet

marcusoftnet Jan 5, 2012

Contributor

See?! Told you that the ConfigureJoin method was hard to grasp ;)

Contributor

marcusoftnet replied Jan 5, 2012

See?! Told you that the ConfigureJoin method was hard to grasp ;)

@markrendle

This comment has been minimized.

Show comment Hide comment
@markrendle

markrendle Jan 5, 2012

Owner

Yeah, yeah. Improved API on its way.

Owner

markrendle replied Jan 5, 2012

Yeah, yeah. Improved API on its way.

@richardhopton

This comment has been minimized.

Show comment Hide comment
@richardhopton

richardhopton Jan 5, 2012

Collaborator

Hmm - was looking at implementing joins in the query for in mem adapter but seems you maintain related tables during insert not on select.

Collaborator

richardhopton replied Jan 5, 2012

Hmm - was looking at implementing joins in the query for in mem adapter but seems you maintain related tables during insert not on select.

@markrendle

This comment has been minimized.

Show comment Hide comment
@markrendle

markrendle Jan 5, 2012

Owner
Owner

markrendle replied Jan 5, 2012

@richardhopton

This comment has been minimized.

Show comment Hide comment
@richardhopton

richardhopton Jan 5, 2012

Collaborator

Not from what I could see... might me missing the point entirely tho!

Collaborator

richardhopton replied Jan 5, 2012

Not from what I could see... might me missing the point entirely tho!

Please sign in to comment.