public void SetupContext() { _clientFactory = MockRepository.GenerateStrictMock<IClientFactory>(); _client = MockRepository.GenerateStrictMock<IObjectContainer>(); _clientFactory.Expect(x => x.Unbind()).Return(_client); _client.Expect(x => x.Close()).Return(true); _client.Expect(x => x.Dispose()); _mod = new Db4oMessageModule(_clientFactory); }