public void SetUp() { _application = MockRepository.GenerateMock<HttpApplicationStateBase>(); _context = MockRepository.GenerateMock<HttpContextBase>(); _context.Stub(arg => arg.Application).Return(_application); _mapper = new HttpApplicationStateBaseMapper(); 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 HttpApplicationStateBaseMapper(); }