It's test project for credit card validation.
- Language: C#
- Framework & Library: Asp .Net Web Api, OWIN, AutoMapper
- ORM: EntityFramework Code First
- Database: Microsoft SQL Server
- Logging: NLog
- API Versioning: Microsoft.AspNet.WebApi.Versioning
- API Documentation(Swagger): Swashbuckle
- Dependency Injection: Unity
- API Validation: SpecExpress
- Unit Test: Microsoft.VisualStudio.TestTools.UnitTesting
- ORM mocking: Effort
- Change connection string from “Web.config” file
- No need to run any db script
- It’s code first project after building solution just hit any endpoint that will create database automatically
- Has some default data that will also insert in database creating time.
- Build the solution
- That will create app in IIS named “CardValidation”
- Then hit endpoint http://localhost/CardValidation/docs/index#!
- If you don’t have IIS or want to run in any port without deploying in IIS, then
- Change the project setting from “Local IIS” to “”IIS Express”
- That will run the project in http://localhost:60889
- Then hit endpoint http://localhost:60889/docs/index#!
- Now call “GET /api/Card/ValidateCard” endpoint with parameters:
- cardNumber: “4412345678901234”
- expiryDate “012020”