Skip to content

rjrony/CardValidation

Repository files navigation

CardValidation

It's test project for credit card validation.

Technology Highlights:

  • 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

How to run:

  1. 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.
  2. Build the solution
  3. If you don’t have IIS or want to run in any port without deploying in IIS, then
  4. Now call “GET /api/Card/ValidateCard” endpoint with parameters:
    • cardNumber: “4412345678901234”
    • expiryDate “012020”

About

Mainly credit card validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages