コード例 #1
0
 public void SetupTest()
 {
     _sqlBuilder = MockRepository.GenerateMock<ISqlBuilder>();
     _sqlBuilder.Stub( sb => sb.GetSql() ).Return( _outputSql );
     _paramMgr = MockRepository.GenerateMock<IParameterManager>();
     _queryBuilder = new QueryBuilder( _sqlBuilder, _paramMgr );
     _resultSql = _queryBuilder.GetSql();
 }