Hi Dlharrison,
Please use integration test for this, where you actually setup a database for your test to run against and destroy the database once they are completed. The mocks run against in-memory Observable collections and are not related as they would be in SQL Server, again they are mocked.
A Find(id) does not return the entire object graph, you will need to do Repository<Product>().Query(t => t.ProductId == 2).Include(t => t.Supplier).Select().First();
Please use integration test for this, where you actually setup a database for your test to run against and destroy the database once they are completed. The mocks run against in-memory Observable collections and are not related as they would be in SQL Server, again they are mocked.
A Find(id) does not return the entire object graph, you will need to do Repository<Product>().Query(t => t.ProductId == 2).Include(t => t.Supplier).Select().First();