Hi I uploaded a patch to this list that refactored out the DatabaseTestFixture into more of a fluent interface..I originally started this so I could pass in an IWindsorContainer instance using the same semantics and ended up just refactoring everything in the interface to get rid of duplicated code my additions were causing. Impact to underlying UnitOfWorkTestContext, etc are minimal, but now you can Initialize Nhibernate and IOC like this: ----------- Initialize(PersistenceFramework.NHibernate, mappingInfo).AndIoC(container);
or fullblown: -------- Initialize(PersistenceFramework.NHibernate,mappingInfo) .Using(DatabaseEngine.MsSqlCe,"dbname") .ConfiguredBy(myProperties) .AndIoC(container); The patch delegates all the current calls to the fluent interface and adds an 'Initialize(..)' method for access to it. A test is included that just goes through the interface and initializes the whole thing and then checks that the container instance is preserved.Let me know if you want more robust tests...I just relied on the other tests to delegate to it. All Commons tests pass after this is applied. There was a unrelated test in mocks that failed probably becuase of my environment. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" 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/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
