public void SetUp()
			{
				_session = MockRepository.GenerateMock<HttpSessionStateBase>();
				_context = MockRepository.GenerateMock<HttpContextBase>();
				_context.Stub(arg => arg.Session).Return(_session);
				_mapper = new HttpSessionStateBaseMapper();

				Type type = typeof(When_mapping_parameter);
				MethodInfo methodInfo = type.GetMethod("Method", BindingFlags.NonPublic | BindingFlags.Instance);
				ParameterInfo parameterInfo = methodInfo.GetParameters()[0];

				_result = _mapper.MapAsync(_context, type, methodInfo, parameterInfo).Result;
			}
            public void SetUp()
            {
                _session = MockRepository.GenerateMock <HttpSessionStateBase>();
                _context = MockRepository.GenerateMock <HttpContextBase>();
                _context.Stub(arg => arg.Session).Return(_session);
                _mapper = new HttpSessionStateBaseMapper();

                Type          type          = typeof(When_mapping_parameter);
                MethodInfo    methodInfo    = type.GetMethod("Method", BindingFlags.NonPublic | BindingFlags.Instance);
                ParameterInfo parameterInfo = methodInfo.GetParameters()[0];

                _result = _mapper.MapAsync(_context, type, methodInfo, parameterInfo).Result;
            }
			public void SetUp()
			{
				_context = MockRepository.GenerateMock<HttpContextBase>();
				_mapper = new HttpSessionStateBaseMapper();
			}
 public void SetUp()
 {
     _context = MockRepository.GenerateMock <HttpContextBase>();
     _mapper  = new HttpSessionStateBaseMapper();
 }