public void SetUp()
        {
            _session = MockRepository.GenerateStrictMock<HttpSessionStateBase>();
            _session.Stub(s => s["Connectionstring"]).Return(Connectionstring);

            _context = MockRepository.GenerateStrictMock<HttpContextBase>();
            _context.Stub(c => c.Session).Return(_session);

            _connectionstringBuilder = MockRepository.GenerateStub<IConnectionstringBuilder>();
            _connectionstringBuilder.Expect(cb => cb.BuildConnectionString(Arg<IConnectionstringArguments>.Is.Anything)).Return(Connectionstring);

            var sqlServerConnectionstringArgumentsMapper = new SqlServerConnectionstringArgumentsMapper();
            _connectionstringArgumentsMapperFactory = MockRepository.GenerateStrictMock<IConnectionstringArgumentsMapperFactory>();
            _connectionstringArgumentsMapperFactory.Expect(factory => factory.Make(Arg<string>.Is.Anything)).Return(sqlServerConnectionstringArgumentsMapper);

            _schemaReader = MockRepository.GenerateStub<ISchemaReader>();
        }
        public void TestFixtureSetUp()
        {
            _connectionstringBuilder = MockRepository.GenerateStub<IConnectionstringBuilder>();

            _connectionstring = "validConnectionstring";
            _connectionstringBuilder.Expect(csb => csb.BuildConnectionString(Arg<SqlServerConnectionstringArguments>.Is.Anything)).Return(_connectionstring);

            _connectionstringArgumentsMapper = MockRepository.GenerateStub<IConnectionstringArgumentsMapper>();
            _connectionstringArgumentsMapper.Expect(csa => csa.Map(Arg<string>.Is.Anything, Arg<string>.Is.Anything, Arg<string>.Is.Anything, Arg<string>.Is.Anything, Arg<string>.Is.Anything, Arg<string>.Is.Anything)).Return(new SqlServerConnectionstringArguments());
        }