Just wondering if I am doing something wrong here. I am trying to run an integration test based on the example code on the wiki and example application. Hoping somebody can help me out :)
I have saved the example code here: http://pastie.org/433518 var store = new Store { Name = "Bakery" }; new PersistenceSpecification<Employee>(session) .CheckProperty(x => x.FirstName, "Jake") .CheckProperty(x => x.LastName, "Scott") .CheckReference(x => x.Store, store) .VerifyTheMappings(); System.ApplicationException: Expected 'fluent_muck_around.Store' but got 'StoreProxy4a9aef614d8e4f91a1329920a5592084' for Property 'Store' at FluentNHibernate.Testing.PersistenceSpecification`1.PropertyValue.CheckValue (Object target) in C:\mvc\fluent-nhibernate\src\FluentNHibernate \Testing\PersistenceSpecification.cs: line 265 at FluentNHibernate.Testing.PersistenceSpecification`1.<>c__DisplayClass2.<VerifyTheMappings>b__1 (PropertyValue p) in C:\mvc\fluent-nhibernate\src\FluentNHibernate \Testing\PersistenceSpecification.cs: line 119 at System.Collections.Generic.List`1.ForEach(Action`1 action) at FluentNHibernate.Testing.PersistenceSpecification`1.VerifyTheMappings () in C:\mvc\fluent-nhibernate\src\FluentNHibernate\Testing \PersistenceSpecification.cs: line 119 at fluent_muck_around.IntegrationTests.should_save_and_load_an_employee_with_a_store_reference () in Entities.cs: line 134 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
