protected override void Context() { AuthorizationService = MockRepository.GenerateStub<IAuthorizationService>(); CreateCustomerRequestValidator = MockRepository.GenerateStub<CreateCustomerRequestValidator>(); ValidatorFactory = MockRepository.GenerateStub<IValidatorFactory>(); ValidatorFactory.Stub(x => x.GetValidator<CreateCustomerRequest>()) .Return(CreateCustomerRequestValidator); CustomerRepository = MockRepository.GenerateStub<ICustomerRepository>(); CustomerCreator = new CustomerCreator(AuthorizationService, CreateCustomerRequestValidator, CustomerRepository); }