Just define a separate class in your test project and decorate it with [SetupFixture] along with a public void decorated with [SetUp]. That will run once for the whole test project.
-Asbjørn On Wed, 12 Aug 2009 13:11:58 +0200, Paul Hinett <[email protected]> wrote: > Hi, > > > Just a quick question about where is the best place to initialize the > ServiceLocator before all my Data tests are run. At the moment i am > running > it in the [TestFixtureSetup] before each test. > > > I was wondering if there is a more global place to initialise it so i > don't > have to do this for every test. > > > Regards, > > Paul Hinett > > > w: http://www.ukcreativedesigns.com | e: [email protected] | t: > 07958 552 157 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
