Git Product home page Git Product logo

api-test2's Introduction

Hello, This is Abhishek B.

Asp.net Core 2 API Development (REST API) Demo


What is about the Repository & Library?

This is a Asp.net Core 2 API Rest Service Application that is a demo with Person and its Identifier details.


@Libraries

  • Core2APIExercise ( Root API Application )
  • Core2APIExercise.Common ( Initializer, Respositories etc )
  • Core2APIExercise.Data ( Db Context, Entities etc)
  • Core2APIExercise.UnitTest ( Repo XUnit Testing Lib )
  • Core2APIExercise.BaseTest ( Base Test Class ... )

Quick reference

About

This demo application is an exercise to demonstrate, How to write the Rest API with Repositort and UnitOfWork Pattern, This repository contains a xUnit Test cases to show the Integration and Automatic Testing, This is a great at demonstrating concepts,
The purpose of this demo application is to apply concepts/techniques exercise to Large scale API/Web application.

#Testing

  • Unit Testing using Moq and xUnit
  • Integration Testing using TestHost and
  • InMemoryDatabase
  • UI Testing using Selenium

#Technologies

  • ASP.NET Core 2.0
  • Entity Framework Core 2.0 / Identity 2.0
  • xUnit
  • Moq
  • Swash Buckle ( Use friendly API route & TEST )
  • AutoMapper ( Mapping user model to Db Entities)

#Design Patterns

  • Repository
  • Unit Of Work

#POSTMAN Test METHODS

image


#Unit Test - ScreenShot image

What covers in Core2 API

  • Get all the persons with identfiers.
  • get all the person by firstname or lastname
  • get all the person who has specific identifiers
  • create a person with idetifiers
  • create a person without identifiers
  • add new identifier to a person,
  • delete identifier form a person
  • execute a logical delete on a person
  • update a person without changing identifiers

Extra points Covers in this Demo

  • adding using xunit test cases for the controllers
  • using fluentValidation instead of data attributes
  • using migrations on ef core
  • adding support to swagger
  • rest url structure

changelog

  • 04-Nov-2017

thanks

Email: bhalaniabhishek[@]Gmail[dot]com

api-test2's People

Contributors

abhishekbhalani avatar barchito avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.