public override void Context()
 {
     base.Context();
     _parameterInfo = mock <IParameterInfo>();
     _paramsArgumentSpecificationFactory    = mock <IParamsArgumentSpecificationFactory>();
     _nonParamsArgumentSpecificationFactory = mock <INonParamsArgumentSpecificationFactory>();
     _suppliedArgumentSpecifications        = mock <ISuppliedArgumentSpecifications>();
 }
            public override void Context()
            {
                _expectedResult = new[] { mock <IArgumentSpecification>(), mock <IArgumentSpecification>() };

                _arrayArgument  = new[] { "one", "two" };
                _parameterInfos = new[] { mock <IParameterInfo>(), mock <IParameterInfo>() };
                _suppliedArgumentSpecifications = mock <ISuppliedArgumentSpecifications>();

                _nonParamsArgumentSpecificationFactory = mock <INonParamsArgumentSpecificationFactory>();
                _nonParamsArgumentSpecificationFactory.stub(x => x.Create(_arrayArgument[0], _parameterInfos[0], _suppliedArgumentSpecifications)).Return(_expectedResult[0]);
                _nonParamsArgumentSpecificationFactory.stub(x => x.Create(_arrayArgument[1], _parameterInfos[1], _suppliedArgumentSpecifications)).Return(_expectedResult[1]);
            }
Example #3
0
 public ArrayArgumentSpecificationsFactory(INonParamsArgumentSpecificationFactory nonParamsArgumentSpecificationFactory)
 {
     _nonParamsArgumentSpecificationFactory = nonParamsArgumentSpecificationFactory;
 }
 public ArgumentSpecificationFactory(IParamsArgumentSpecificationFactory paramsArgumentSpecificationFactory, INonParamsArgumentSpecificationFactory nonParamsArgumentSpecificationFactory)
 {
     _nonParamsArgumentSpecificationFactory = nonParamsArgumentSpecificationFactory;
     _paramsArgumentSpecificationFactory = paramsArgumentSpecificationFactory;
 }
 public ArgumentSpecificationFactory(IParamsArgumentSpecificationFactory paramsArgumentSpecificationFactory, INonParamsArgumentSpecificationFactory nonParamsArgumentSpecificationFactory)
 {
     _nonParamsArgumentSpecificationFactory = nonParamsArgumentSpecificationFactory;
     _paramsArgumentSpecificationFactory    = paramsArgumentSpecificationFactory;
 }
 public ArrayArgumentSpecificationsFactory(INonParamsArgumentSpecificationFactory nonParamsArgumentSpecificationFactory)
 {
     _nonParamsArgumentSpecificationFactory = nonParamsArgumentSpecificationFactory;
 }