Giter Site home page Giter Site logo

msa2022-backend's Introduction

msa2022-backend

Configuration Files

2 configuration files allow the developer to start the project with different variables or configurations. Stuff that we want in the production but maybe not in the development phase. In the development configuration file we can declare variables of the same key with a different value, this will allow developers to control the parameters they want to run the project with.

Dependency Injections

Dependency Injection simplifies our code by reducing redundancy in our code, in my code I use it by using IHttpClientFactory which injects the api-endpoint into HttpClient every time I make one. This reduces duplicate code in my program and makes unit testing easier.

Unit Testing

Unit Testing allow developers to have automatic testing in their projects, this is not only faster but is also way more convientent as I don't have to manual test every time I change my program. I can run these unit tests and see if all the tests still pass, and can let me know early in development when there is an error.

Middleware Testing

Many middleware testing libraries make my code easier to test, as it has better support for dealing with comparing responces with ActionResult results than the normal Assert. For example, FluentAssertions lets me easily compare response types, espicially the Ok and NotFound Result. This made it more easier to implement as well as makes it easier to understand.

-Vince Guan

msa2022-backend's People

Contributors

dulfins 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.