GBRI has Unit tests (uses
NUnit 2.1) have been created for testing the web services layer units. This includes tests for the Business Actions, Custom Handlers, Utilities used by the handlers and Business actions and the services exposed by GBRI.
The unit tests use
NUnit 2.1. This tool can be downloaded from http://www.nunit.org
The tests are packaged as a separate VS.NET project that needs to be added to the VS.NET solution.
1. Extract the zip file downloadable from http://workspaces.gotdotnet.com/shadowfx to the location where you have EDRA (Reference Architecture) installed. This will copy the files required for running the Unit tests into the corresponding folders. Folders and some files that are created are as follows
[EDRA Install Location]
- CS
-
ReferenceImplementation Build with Unit Tests and Deploy Reference Implementation.wsf
Deploy With Unit Tests Reference Implementation.wsf
GlobalBank with
NUnit Tests.sln
-
GlobalBank - Services
- Tests
Tests.csproj
Tests.dll.config
Other Files ...
+
AccountStatement + Authentication
+
BillPayment +
BillSubscription + Common
+
ExternalInvestFundSystem +
FundsTransfer + Handlers
+
TransactionLog 2.
Important: Open the
GlobalBank with NUnit Tests.sln in VS.NET 2003. Make sure all the References in the
Tests project to other projects are valid.
3. Follow the installation instructions below.
Installing Reference Implementation with NUnit tests1. Run the
Build with Unit Tests and Deploy Reference Implementation.wsf script from the location
EDRA Install Location\CS\ReferenceImplementation 2. Launch
NUnit with
EDRA Install Location\CS\ReferenceImplementation\GlobalBank\Services\Tests\bin\debug\tests.dll as the assembly containing the tests.These are tests for the services, the business actions, handlers and the other utilities used by the handlers.
3. Run the Web Application. using the URL:
http://localhost/GlobalBank/Default.aspxAccounts to use for accessing Global Bank:
| UserName | Password |
| 11111111 | 1111 |
| 22222222 | 2222 |
| 33333333 | 3333 |
| 44444444 | 4444 |
| 55555555 | 5555 |
Alternate Procedure for setting up the Reference Implementation with NUnit Tests1. Run the
Setup Reference Implementation.wsf script from the Location
EDRA Install Location\CS\ReferenceImplementation 2. Open the
EDRA Install Location\CS\ReferenceImplementation\GlobalBank with NUnit Tests.sln and build it in VS.NET 2003.
3. Run the
Deploy With Unit Tests Reference Implementation.wsf from the Location
EDRA Install Location\CS\ReferenceImplementation 4. Launch
NUnit with
EDRA Install Location\CS\ReferenceImplementation\GlobalBank\Services\Tests\bin\debug\tests.dll
as the assembly containing the tests.
5. Run the unit tests
(NUnit 2.1) located in the
EDRA Install Location\CS\ReferenceImplementation\GlobalBank\Services\Tests\Tests project. These are tests for the services, the business actions, handlers and the other utilities used by the handlers.
6. Run the Web Application. using the URL:
http://localhost/GlobalBank/Default.aspxAccounts to use for accessing Global Bank:
| UserName | Password |
| 11111111 | 1111 |
| 22222222 | 2222 |
| 33333333 | 3333 |
| 44444444 | 4444 |
| 55555555 | 5555 |