I have a feature to implement- charge credit card of customer,when a daily cron runs,and finds not enough balance in customers account.Now,how can I go about...
I would create a façade class to interface with the PaymentGateway. It should have only methods you need and deal only with those gateway calls that you need...
... I have worked in this area before. Your Payment Gateway should provide a test server. Often there is a different Webservice or Port. Talk to your Payment...
Yes, certainly create a façade to the gateway. To do the 'study' as you call it (often called a spike), do it as a piece of TDD. That is, call out to the...
A new binary release of DbFit is now on available. Grab it from https://sourceforge.net/project/showfiles.php?group_id=191053&package_id=224326 DbFit is an...
Anybody have any experience with an integration framework for Ruby? I have found that unit testing does not pin down the interaction of the objects enough. ...
Hi Philip, Thanks for the reply. See inline. -T [TNS] <snip> ... We need to start by narrowing the terms down. A test _case_ is a function that Assembles test...
[Tip: learn to use your editor's reply-ticks feature!] ... One important design goal is "DRY" code. That means Don't Repeat Yourself. The source code you...
... Firstly, we do "developer tests". The strict definition of "unit test" implies you only need to search one unit to find the cause for a test failure....
I apologize if this is the wrong forum. Please redirect me if necessary. Just thought 1 of you might know. If I want to build .NET 3.5 code (e.g. LINQ, etc)...
I use the csc task which works fine in 2.0. For 3.5 I swapped it out temporarily with an <exec> task and it just calls the command line compiler. You can go...
Philip, Thank you! I see what you mean about violating LSP. I tried to figure out what led me down this path, it looks like it was state based testing. I redid...
Whew. After a long sojourn maintaining repeated, predictable legacy code in a scenario where TDD is impractical, I finally get to develop some of my own code...
... NAnt also calls MSBuild without any problems. :) At least in 2.0. /bs...
Brad Stiles
bradley.stiles@...
Sep 6, 2007 11:55 am
25449
... (Phillip makes some comments about the difference between the unit/integration/system/acceptance concept and the "developer facing/customer facing"...
I have a feature to implement,which involves series of steps to be performed.Its a system action,initiated by another system action(a cron).We have started...
We are writing test first.But the feature we are implementing,we need to touch the database too.Now,instead of using an interface,and mocks,we are actually...
... Tests which touch the database and tests which mock the database are different in kind, and very likely you will need some of each. Most people write both...
Hi Kumbhkaran, ... Normally, I would test 1) Each step 2) The object that sequences steps (using dummy steps or mocks) 3) The object that tells the sequencer...
We have NAnt calling msbuild to compile our csproj files. It works great. I haven't totally learned msbuild, yet, but I am not in any rush, since I agree that...
The file is called 'test_duck_squeezer.rb'. As you can tell all three tests pass, but if I was to run these three in deployment, I would fail. It is because of...
Hi, We are writing unit tests for database access calls,against development database,located on a server.This database is shared by all developers.Is this a...
... You should try to use a test double for your database as much as possible. For the tests where you really need a database, it's best if each developer has...
Each developer should have the entire solution - including database - on their local machine. A new developer should be able to be up and running within...
... database ... I think if you alrerady have the shared server you should first try using it. For many scenarios it should work OK. if and when you run into...
Hi, I read the posts in this group with interest and I've had some great advice in the past on TDD & agile/xp. Sorry as it's a bit off topic but I'm having...
Do you have all the Vista updates for Visual Studio? there's at least one patch ... I've had no difficulty installing VS2005 Pro from original media to Vista ...
... problems. Yep. ... Nope. I'm just doing it for Rails, via Ruby on Steel, because Netbeans is so freaking slow and fragile. I'm sure MS won't have those...
... Are you installing it from a CD/DVD or on your hard drive? I looked through our KB and saw one case where someone was running into this when installing...