public PaymentServiceBuilder MockWith(Account account) { _mockDataStore = MockRepository.GenerateMock <IDataStore>(); _mockDataStore.Stub(x => x.GetAccount(Arg <string> .Is.Anything)) .Return(account); _mockDataStoreFactory = MockRepository.GenerateStub <IDataStoreFactory>(); _mockDataStoreFactory.Stub(x => x.Get()).Return(_mockDataStore); return(this); }