protected override void Context()
 {
     Username = "******";
     base.Context();
     _deleteCustomerRequest = new DeleteCustomerRequest
                                 {
                                     CustomerId = CustomerId,
                                 };
     CustomerService.Stub(x => x.DeleteCustomer(Arg<string>.Is.Equal(Username),Arg<DeleteCustomerRequest>.Is.Anything))
         .WhenCalled(x => _deleteCustomerRequestPassedToCustomerService = x.Arguments[1] as DeleteCustomerRequest);
 }
        protected override void Context()
        {
            base.Context();
            _deleteCustomerRequest = new DeleteCustomerRequest
                                         {
                                             CustomerId = 8,
                                         };

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

            CustomerRepository.Stub(x => x.Delete(Arg<int>.Is.Equal(_deleteCustomerRequest.CustomerId))).WhenCalled(
                x => _customerIdPassedToCustomerRepository = Convert.ToInt32(x.Arguments[0]));
        }