protected override void Context()
        {
            base.Context();

            _updateCustomerRequest = Builder<UpdateCustomerRequest>.CreateNew().Build();

            AuthorizationService.Stub(
                x => x.CanExecute(Arg<string>.Is.Equal(Username), Arg<Type>.Is.Equal(typeof (UpdateCustomerRequest)))).
                Return(true);

            _updateCustomerRequestValidator = MockRepository.GenerateStub<UpdateCustomerRequestValidator>();
            _updateCustomerRequestValidator.Stub(
                x => x.Validate(Arg<UpdateCustomerRequest>.Is.Equal(_updateCustomerRequest)))
                .Return(new ValidationResult());

            //MockValidatorFactory.Stub(
            //    x => x.Create<UpdateCustomerRequest>())
            //    .Return(_updateCustomerRequestValidator);

            CustomerRepository.Stub(
                x => x.Update(Arg<UpdateCustomerRequest>.Is.Equal(_updateCustomerRequest)))
                .WhenCalled(x => _updateCustomerRequestPassedToRepository = x.Arguments[0] as UpdateCustomerRequest);
        }
        protected override void Context()
        {
            base.Context();

            _updateCustomerRequest = Builder<UpdateCustomerRequest>.CreateNew().Build();

            AuthorizationService.Stub(
                x => x.CanExecute(Arg<string>.Is.Equal(Username), Arg<Type>.Is.Equal(typeof (UpdateCustomerRequest)))).
                Return(true);

            _updateCustomerRequestValidator = MockRepository.GenerateStub<UpdateCustomerRequestValidator>();
            _updateCustomerRequestValidator.Stub(
                x => x.Validate(Arg<UpdateCustomerRequest>.Is.Equal(_updateCustomerRequest)))
                .Return(new ValidationResult(new List<ValidationFailure>
                                                 {
                                                     new ValidationFailure("some property",
                                                                           ErrorReturnedFromValidationEngine),
                                                 }));

            //MockValidatorFactory.Stub(
            //    x => x.Create<UpdateCustomerRequest>())
            //    .Return(_updateCustomerRequestValidator);
        }