Anybody? I want to test mappings using PersistenceSpecification, but I
don't know how to connect mapping files with a test. For example in
this code, how do I tell it what the mapping should be?

 [SetUp]
        public void Setup()
        {
            _client = new Client()
            {
                Name = "Client1"

            };


            _transaction = MockRepository.GenerateStub<ITransaction>
();
            _session = MockRepository.GenerateStub<ISession>();
            _session.Stub(s => s.BeginTransaction()).
            _session.Stub(s => s.GetIdentifier(_client)).Return
(_client.Id);
            _sessionSource =
MockRepository.GenerateStub<ISessionSource>();
            _sessionSource.Stub(ss => ss.CreateSession()).Return
(_session);

            _spec = new PersistenceSpecification<Client>
(_sessionSource);
        }


On Mar 31, 1:39 pm, epitka <[email protected]> wrote:
> I looked at the code, and I don't see where are the mappings for 'Cat'
> coming from? Is it based on the convention. How would I load the
> mappings from different assembly using the same example?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to