This repository contains a solution comprising the core applications for the Income Management System (IMS):
- PaymentPortal (MVC)
- Admin (MVC)
- Api (Web API)
The projects target the .NET Framework version 4.8.1. The implementation stores data in a SQL database.
A UI allowing a customer to pay for items via a payment basket.
A UI allowing staff to manage income management.
An API allowing other services to integrate with the IMS
Prerequisites
Application Settings
Database Initialisation & Seed Data
Database Migrations
Setting Up a User Account
Adding a Payment Integration
Accessible Autocomplete
After reading the documentaion and cloning the repository:
- Open the solution and switch the build configuration to 'Local'
- Add a Web.Local.config file for each of the web projects you plan to run (typically all three).
- Add transformations to the configs for AppSettings - see the relevant Web.Base.config files for lists of the settings. Note: Some settings are common across applications, such as ReferenceSalt, so ensure they are identical.
- Ensure a transformation for the IncomeDb connection string is specified
- Ensure the database initialiser is specified.
- Right click on the solution and 'Restore NuGet packages'
- Build the solution
- Set the project you wish to run as the Start Project. If this is your first run it's recommended to set this to the PaymentPortal project.
- Press F5 to run.
Unit tests can be run from the Test Explorer window.
Before running any tests:
- Configure the run settings (Test > Configure Run Settings) to use Test.runsettings
- Update the settings within that file to reflect values appropriate for your local environment
To run UI tests you will need to open two instances of Visual Studio. The first will be used to run the application you are wanting to test. The second will be used to run the tests via the Test Explorer window.