public void SetupTest()
 {
     _paramNameGenerator = MockRepository.GenerateMock<IParameterNameFactory>();
     _parameterNamesJoiner = MockRepository.GenerateMock<IParameterNamesJoiner>();
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 0 ) ).Return( _paramName );
     _parameterStubFactory = MockRepository.GenerateMock<IParameterStubFactory>();
     _paramMgr = new ParameterManager( _paramNameGenerator, _parameterNamesJoiner, _parameterStubFactory );
     _result = _paramMgr.AddParameter( _inputParam );
 }
 public void SetupFixture()
 {
     _inputParamValue = "inputParam";
     _inputDbType = DbType.String;
     _paramName = "paramName";
     _parameterStub = MockRepository.GenerateMock<IParameterStub>();
     _nameGenerator = MockRepository.GenerateMock<IParameterNameFactory>();
     _parameterNamesJoiner = MockRepository.GenerateMock<IParameterNamesJoiner>();
     _parameterStubFactory = MockRepository.GenerateMock<IParameterStubFactory>();
     _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName, _inputParamValue, _inputDbType ) ).Return( _parameterStub );
     _nameGenerator.Stub( ng => ng.GenerateParameterName( 0 ) ).Return( _paramName );
 }
 public void SetupTest()
 {
     _paramNameGenerator = MockRepository.GenerateMock<IParameterNameFactory>();
     _parameterNamesJoiner = MockRepository.GenerateMock<IParameterNamesJoiner>();
     _parameterStubFactory = MockRepository.GenerateMock<IParameterStubFactory>();
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 0 ) ).Return( _expectedParamNames[0] );
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 1 ) ).Return( _expectedParamNames[1] );
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 2 ) ).Return( _expectedParamNames[2] );
     _paramMgr = new ParameterManager( _paramNameGenerator, _parameterNamesJoiner, _parameterStubFactory );
     _results = _paramMgr.AddParameters( _inputParam1, _inputParam2, _inputParam3 );
 }
            public void SetupFixture()
            {
                _inputParamValue0 = "inputParam0";
                _inputParamValue1 = "inputParam1";
                _inputParamValue2 = "inputParam2";
                _inputEnumParam = new List<String> { "inputParam3", "inputParam4", "inputParam5" };

                _paramName0 = "paramName0";
                _paramName1 = "paramName1";
                _paramName2 = "paramName2";
                _paramName3 = "paramName3";
                _paramName4 = "paramName4";
                _paramName5 = "paramName5";
                _paramNameCollection = new List<String> { _paramName3, _paramName4, _paramName5 };

                _paramStub0 = MockRepository.GenerateMock<IParameterStub>();
                _paramStub1 = MockRepository.GenerateMock<IParameterStub>();
                _paramStub2 = MockRepository.GenerateMock<IParameterStub>();
                _paramStub3 = MockRepository.GenerateMock<IParameterStub>();
                _paramStub4 = MockRepository.GenerateMock<IParameterStub>();
                _paramStub5 = MockRepository.GenerateMock<IParameterStub>();

                _expectedParameterStubs = new List<IParameterStub>();
                _expectedParameterStubs.Add( _paramStub0 );
                _expectedParameterStubs.Add( _paramStub1 );
                _expectedParameterStubs.Add( _paramStub2 );
                _expectedParameterStubs.Add( _paramStub3 );
                _expectedParameterStubs.Add( _paramStub4 );
                _expectedParameterStubs.Add( _paramStub5 );

                _nameFactory = MockRepository.GenerateMock<IParameterNameFactory>();
                _nameFactory.Stub( ng => ng.GenerateParameterName( 0 ) ).Return( _paramName0 );
                _nameFactory.Stub( ng => ng.GenerateParameterName( 1 ) ).Return( _paramName1 );
                _nameFactory.Stub( ng => ng.GenerateParameterName( 2 ) ).Return( _paramName2 );
                _nameFactory.Stub( ng => ng.GenerateParameterName( 3 ) ).Return( _paramName3 );
                _nameFactory.Stub( ng => ng.GenerateParameterName( 4 ) ).Return( _paramName4 );
                _nameFactory.Stub( ng => ng.GenerateParameterName( 5 ) ).Return( _paramName5 );

                _parameterNamesJoiner = MockRepository.GenerateMock<IParameterNamesJoiner>();

                _parameterStubFactory = MockRepository.GenerateMock<IParameterStubFactory>();
                _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName0, _inputParamValue0 ) ).Return( _paramStub0 );
                _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName1, _inputParamValue1 ) ).Return( _paramStub1 );
                _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName2, _inputParamValue2 ) ).Return( _paramStub2 );
                _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName3, _inputEnumParam[0] ) ).Return( _paramStub3 );
                _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName4, _inputEnumParam[1] ) ).Return( _paramStub4 );
                _parameterStubFactory.Stub( f => f.CreateParameterStub( _paramName5, _inputEnumParam[2] ) ).Return( _paramStub5 );
            }
 public void SetupTest()
 {
     _paramNameGenerator = MockRepository.GenerateMock<IParameterNameFactory>();
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 0 ) ).Return( _expectedParamEnumNames[0] );
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 1 ) ).Return( _expectedParamEnumNames[1] );
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 2 ) ).Return( _expectedParamEnumNames[2] );
     _paramNameGenerator.Stub( png => png.GenerateParameterName( 3 ) ).Return( _expectedIndividualParamName );
     _parameterNamesJoiner = MockRepository.GenerateMock<IParameterNamesJoiner>();
     _parameterNamesJoiner.Stub( pnj => pnj.JoinNames( Arg<IEnumerable<String>>.List.Equal( _expectedParamEnumNames ) ) ).Return( _expectedParamEnumNamesUnion );
     _parameterStubFactory = MockRepository.GenerateMock<IParameterStubFactory>();
     _expectedResults = new List<String> { _expectedParamEnumNamesUnion, _expectedIndividualParamName };
     _paramMgr = new ParameterManager( _paramNameGenerator, _parameterNamesJoiner, _parameterStubFactory );
     _results = _paramMgr.AddParameters( _paramEnum, _individualInputParam );
 }